- Open Excel and navigate to the worksheet where you want to insert the plot.
- Go to the Insert tab in Excel.
- Click on Pictures and choose Picture from File.
- Locate and select the image file you saved from MATLAB
how to export plot from matlab2021a to excel using Mac
조회 수: 3 (최근 30일)
이전 댓글 표시
Does anyone knows how to export plot from matlab2021a to excel using Mac
댓글 수: 0
답변 (1개)
Suraj Kumar
2025년 3월 4일
To export a plot from MATLAB 2021a to Excel on a Mac, you can refer to the following steps and attached code snippets:
x = 0:0.1:10;
y = sin(x);
plot(x, y);
saveas(gcf, 'myPlot.png');
2. You can manually insert the saved image into an Excel spreadsheet by following the below mentioned steps:
3. If you also need to export the data used in the plot to excel, you can use the writematrix function in MATLAB to export the data.
data = [x', y'];
writematrix(data, 'myData.xlsx');
Hope this resolves your query!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!