Question: using MATLAB 10) Write a script that will prompt the user for a character. It will create an x-vector that has 50 numbers, equally spaced
10) Write a script that will prompt the user for a character. It will create an x-vector that has 50 numbers, equally spaced between-21 and 2nt, and then a y-vector which is cos(x). If the user entered the character 'r, it will plot these vectors with red *s - otherwise, for any other character it will plot the points with green +s
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
