Question: Write a MATLAB code which takes a 6-digit number as input and creates a 6x6 diagonal matrix using numbers of your input. Use for loop
Write a MATLAB code which takes a 6-digit number as input and creates a 6x6 diagonal matrix using numbers of your input. Use for loop to create the code and test it using the first six digits of your student ID. Write a MATLAB code which generates a geometric sequence 25,20, 15, 10,5,0 using for loop. Write a MATLAB code which asks a user for an integer number and computes the factorial of that number. Use while loop to create the code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
