Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need a code to this program on matlab. ( matlab can be downloaded online for free) Your task is to write a MATLAB script
I need a code to this program on matlab. ( matlab can be downloaded online for free)
Your task is to write a MATLAB script that will plot a set of data. The script should: Have a section that allows the user to enter the name of a data file. Be capable of reading a 2D data set stored in either rows or columns (a 2 by times matrix or a times by 2). Use a menu together with a switch case to allow the user to select the type of the plot symbol. Once the symbol type is entered, use an input command with an if statement to select the color of the symbol. Make sure the script has a section that checks for user input error, and only allows a correct input. Once the data is entered, it should plot the x - y plot. Have a section that will allow the user to enter the plot title, and x and y axis labels. Once the user is satisfied with the results the script should allow the user to enter a new set of data without ending the program. Do not use a menu for this. Make sure the script allows for user input error. Make sure the M-file has the proper amount of comment lines, indented text, white space, etc. Also, make sure the names of the group members are in comment lines on the top of the file. Create two data sets to test the program. The first data set should have the data stored in rows, use at least 20 data points. The second data set should have the data stored in columns, use at least 20 data points. Do not use data that appears to fit a straight lineStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started