write a matlab code where you repeatedly create a multiple of N and test if all digits are 9 or 0
`Hey,
Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries
clc; clear;
N=input('Enter a positive whole number N: ');
cnt=1;
while true
M=N*cnt;
while M>=1
remainder=mod(M,10);
if remainder==9||remainder==0
M=floor(M/10);
else
break;
end
end
if M<1
break;
end
cnt=cnt+1;
end
fprintf('Lowest multiple with only 9s and 0s: %d ',N*cnt);
Kindly revert for any queries
Thanks.
write a matlab code where you repeatedly create a multiple of N and test if all...
Matlab -------- Write a code to generate the first n positive multiples of 5, where n is provided by the user.
MATLAB
Write a code where the elements of a squared matrix size (order) n are equal to the sum of its row and column position (I + j)
Please I need help with MATLAB .. PLease help me . Thankyou Write Matlab code to plot a 2D sinc function over a 2D cartesian grid where x ranges from 100 to 355 and y ranges from 0 to 255 and the sinc is centered at somewhere not midway in the grid. First plot the grid, and then plot the function on the grid (both as grayscale and as a surface plot). Comment the code well, generate the figures and...
(Requires use of MATLAB)
Write a function myfibonacci (n), which prompts all elements of the fibonacci sequence to the screen which are smaller than or equal n. Base your code on a while loop. Test your code with n=0, n=1, n=5 and n=25.
Assume that y is a column vector with ten elements, write matlab code that will create a stem plot of the vector starting at a horizontal axis value of 1. Add code that will create the stem plot of the vector starting at a horizontal axis value of 0. Create additional code that creates a stem plot but plots y at every other horizontal value (i.e., 0, 2, 4, etc)
write a matlab code
Write a MATLAB function to check the stability of a digital filter described by its coefficients. Syntax: stable (b, a); where b and a are the system's forward and backward coefficient. Hint: The roots() function might be useful. Returned value: None. Operation: Displays either 'Stable' or 'Not Stable' message and plots the z-plane. Test with Case#1: y(n)= 2x (n) +x (n-1) +0.4y (n-1) - 0.6y (n-2) Case#2: y(n)= x(n) +0.5x (n-1) +2x (n-2)- y(n-1) +y (n-2)...
please write code in MATLAB as well
5. (12 points) Create the following signal in Matlab: x[n] = u(n) - u[n-6] a. Mathematically compute yi[n] = x[n] * x[n] where * means convolution. Now use the conv command to perform the convolution. Graph x[n) and the resulting y(n), both over the interval Osns 20. How many non-zero terms does y(n) have? Does your computational result agree with the Matlab result? b. Repeat a. but this time with yz[n] = x[n]*h[n)...
Using Matlab can you please write the code for question 5.
Display the zl and 22 results using the table function. 5. Create an anonymous function (name it perm) to determine how many arrangements of a subgroup n are possible from a total group size of m when the order is important (permutations). Test the function with m= 10 and n 3 . Use an fprintf statement to display the answer
Write a python program where you create a list (you an create it in code you do not have to use input() statements) that represents the total rainfall for each of 12 months (assume that element 0 is January and element 11 is December). The program should calculate and display the: 1) total rainfall for the year; 2) the average monthly rainfall; 3) the months with the highest and lowest amounts. You need to figure out how to access each...
Python My ITlab: 1. Write some code that repeatedly reads a value into the variable n until a number between 1 and 10 (inclusive) has been entered. 2. Write some code that repeatedly reads a value from standard input into the variable response until at last a Y or y or N or n has been entered. 3.Write a loop that reads positive integers from standard input, printing out those values that are greater than 100, each on a separate...