Question: MATLAB ASSIGMENT Write a program that will ask the user to input a single number N. If the number is nonzero, a one hundred element

MATLAB ASSIGMENT

Write a program that will ask the user to input a single number N. If the number is nonzero, a one hundred element row vector named SEQ will be filled with the values 0.01*N, 0.02*n, ......0.99*N, N. Note this must work for both positive and negative values of N.

It must work for all values of N. Define SEQ using a FOR loop Define SEQb (same values as SEQ), but in 1 line of code (hints: colon operator, matrix operations)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!