My signal value is 1*2560 double and i tried this code to plot the signal s = load('test.mat'); val = (val - 1024)/200; signal = val(1,1:1000) t = (0:length(​signal)-1)​/360; plot(t,signal).But can anybody explain about this code.

My signal value is 1*2560 double and i tried this code to plot the signal
s = load('test.mat');
val = (val - 1024)/200;
signal = val(1,1:1000) ;
t = (0:length(signal)-1)/360;
plot(t,signal)
But can anybody explain about this code.

4 件のコメント

madhan ravi
madhan ravi 2018 年 9 月 5 日
Upload your file?
sandhya sandhya
sandhya sandhya 2018 年 9 月 6 日
編集済み: sandhya sandhya 2018 年 9 月 6 日
uploaded my file sir.I can plot my mat file but i need explanation about this command val = (val - 1024)/200 and t = (0:length(signal)-1)/360.
Here the same code, please check.
sandhya sandhya
sandhya sandhya 2018 年 9 月 6 日
編集済み: sandhya sandhya 2018 年 9 月 6 日
t=load ('s5.mat'); X =t(:,1); %# numbers from all rows, column 1, into X Y =t(:,2); %# numbers from all rows, column 2, into Y plot(x,y,'o'); I tried this code but there is error Index exceeds matrix dimensions.

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2018 年 9 月 5 日

編集済み:

2018 年 9 月 6 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by