合肥生活安徽新闻合肥交通合肥房产生活服务合肥教育合肥招聘合肥旅游文化艺术合肥美食合肥地图合肥社保合肥医院企业服务合肥法律

AME 209代做、代写Matlab 程序设计
AME 209代做、代写Matlab 程序设计

时间:2024-10-26  来源:合肥网hfw.cc  作者:hfw.cc 我要纠错



Homework 5
Fall 2024
AME 209/MSE 280
Prepare your solutions in electronic form. Four files are needed in order to complete the homework 5 assignment. Name all of your files in this format:
hw05_NNNN.pdf hw05_NNNN.m launches_NNNN.fig degrees_NNNN.fig
1. Your task is to write a MATLAB script, hw05_NNNN.m that plots a set of data from a file. Your program will do the following:
a. Ask the user to enter the name of a data file; the input is checked for errors, and up to four tries are allowed (otherwise the program aborts).
b. Read the data file and determine if the x-y data is stored as rows (a matrix with two rows) or as columns (a matrix with two columns). If rows, the x data is in row 1, the y data in row 2; if columns, the x data is in column 1, the y data in column 2. If the data file is not in one of these formats an error message is displayed.
c. Use a menu along with switch/case statements for the user to select the plot symbol (choose one of star, square, circle, diamond).
d. After the plot symbol is chosen, another menu determines the color of the symbol.
e. Ask the user to enter a plot title and labels for the x- and y-axes.
f. Create a plot of the data on the screen.
g. The user can re-run the above with a new set of data.
Test your program by creating two sets of data:
i. The number of worldwide non-commercial space launches over the period 1997 to 2009. Name your data file launches_NNNN.dat, and store the information as columns.
ii. The number of doctoral degrees in sociology awarded in the United States over the period 1997 to 2009. Name your data file degrees_NNNN.dat, and store the information as rows.
The data files should be written so that the year is on the x-axis. The information for these files can be found in the file hw05_rawdata.xlsx on the course website. Save the plots and insert them in the PDF for this assignment.
  
请加QQ:99515681  邮箱:99515681@qq.com   WX:codinghelp




 

扫一扫在手机打开当前页
  • 上一篇:代写program、代做c++,Java程序语言
  • 下一篇:代做CENG 2310、代写matlab设计编程
  • 无相关信息
    合肥生活资讯

    合肥图文信息
    新能源捕鱼一体电鱼竿好用吗
    新能源捕鱼一体电鱼竿好用吗
    海信罗马假日洗衣机亮相AWE  复古美学与现代科技完美结合
    海信罗马假日洗衣机亮相AWE 复古美学与现代
    合肥机场巴士4号线
    合肥机场巴士4号线
    合肥机场巴士3号线
    合肥机场巴士3号线
    合肥机场巴士2号线
    合肥机场巴士2号线
    合肥机场巴士1号线
    合肥机场巴士1号线
    合肥轨道交通线路图
    合肥轨道交通线路图
    合肥地铁5号线 运营时刻表
    合肥地铁5号线 运营时刻表
  • 币安app官网下载 短信验证码

    关于我们 | 打赏支持 | 广告服务 | 联系我们 | 网站地图 | 免责声明 | 帮助中心 | 友情链接 |

    Copyright © 2024 hfw.cc Inc. All Rights Reserved. 合肥网 版权所有
    ICP备06013414号-3 公安备 42010502001045