Hello Guys, plese Help me !!!
조회 수: 2 (최근 30일)
이전 댓글 표시
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!