I want to plot mat file
26 次查看(过去 30 天)
显示 更早的评论
I want to plot mat file with command s=load('signal.mat'); plot(s) but there is error in that command how to plot the signal
4 个评论
madhan ravi
2018-8-20
编辑:madhan ravi
2018-8-20
FYI there is no file attached , please click the paper clip button and then upload it.
采纳的回答
Stephan
2018-8-20
编辑:Stephan
2018-8-20
Hi,
s = load('signal.mat');
will give you a struct s containing fields with your variable(s) in it. Access this data fields with the dot-Notation:
plot(s.your_variable_name_to_plot)
should work.
EDIT:
Your file contains a numeric Matrix of size 10x20480 which appears like 10 data sets - which shall be plotted?
s = load('signal.mat');
plot(transpose(s.val))
will plot all the data in one plot:
Best regards
Stephan
6 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!