I want to plot mat file
조회 수: 11 (최근 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!