Hello Guys, plese Help me !!!
2 ビュー (過去 30 日間)
古いコメントを表示
Dombrovschi Andrei
2019 年 1 月 18 日
コメント済み: madhan ravi
2019 年 1 月 22 日
I have this code, and this error :
N = 1 : length(T19);
for k = 1 : length(T19)
Yf(k)=( 1/N ) * [T19(k)+T19(k-1)] ;
end
plot(T19 , 'b');
hold on;
plot (Yf,'r');
ERRORRRRR !!!
Error using /
Matrix dimensions must agree.
PLS HELP ME!
0 件のコメント
採用された回答
Dombrovschi Andrei
2019 年 1 月 18 日
2 件のコメント
Walter Roberson
2019 年 1 月 21 日
It is not clear how "can you show me the code please" is a the Answer to your Question ??
madhan ravi
2019 年 1 月 22 日
Wow you ask a question and you accept an answer which is actually a comment , sir Walter's answer does exactly what you asked for!
その他の回答 (1 件)
Walter Roberson
2019 年 1 月 18 日
you probably need N(k)
2 件のコメント
Image Analyst
2019 年 1 月 18 日
And
for k = 2 : length(T19)
so you don't get a zero index when you do T19(k-1)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!