![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191974/image.png)
How visualize data in matlab
2 ビュー (過去 30 日間)
古いコメントを表示
I am trying to visualize data in matlab with this file (I have attach above).
How to visualize the data with the x-axis is the "date2", dan the y-axis is "mean_METs"?
0 件のコメント
採用された回答
Star Strider
2018 年 7 月 16 日
編集済み: Star Strider
2018 年 7 月 16 日
With your data, use the structure field reference with your ‘ee_moderate’ table:
d = load('ee_moderate.mat');
ee_moderate = d.ee_moderate;
figure
plot(ee_moderate.date2, ee_moderate.mean_METs)
xlabel('date2')
ylabel('mean\_METs')
grid
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191974/image.png)
4 件のコメント
その他の回答 (1 件)
KARSH THARYANI
2018 年 7 月 16 日
Hi,
In short, you need to load your .mat file and the variables will show up in your workspace, if loaded successfully.
Then, you can plot them.
So, for instance if you have a column vector in X and the values corresponding to it in Y, you can do
plot(X, Y);
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!