Plot data from Excel
显示 更早的评论
How do I get Matlab to open my Excel file and read the data so that it is translated into a graph? It's projectile trajectory. The excel file has three columns (initial velocity, angle, and distance) and 20 rows.
So, how do I have matlab read the excel file and then plot it? A sample code would be great.
回答(1 个)
Image Analyst
2013-12-16
编辑:Image Analyst
2013-12-16
0 个投票
First, make up your Excel file with some sample data and then make your plot and save it. Do that in Excel itself.
Then create your new data in MATLAB and write it with xlswrite() or ActiveX to the same cells (and same workbook of course) as when you created the file. The plot will update with the new values you wrote. If you want an example of ActiveX programming, see the attached.
类别
在 帮助中心 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!