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!