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

using MATLAB
using MATLAB 10) Write a script that will prompt the user for

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

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!