Hello Guys, plese Help me !!!
古いコメントを表示
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!
採用された回答
その他の回答 (1 件)
Walter Roberson
2019 年 1 月 18 日
0 投票
you probably need N(k)
2 件のコメント
Walter Roberson
2019 年 1 月 18 日
Yf(k)=( 1/N(k) ) * [T19(k)+T19(k-1)] ;
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)
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!