Matrix dimensions must agree!
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
Hi guys,Am a newbie to Matlab and been having a clitch here. Any help will be highly appreciated.I am trying to plot this simple data but i am getting an error ('Matrix dimensions must agree'). Thanks
Harry
function[]=SRC() clc;clear display('Provide the values of Qs and ranges of normalised frequency fn') Qs= input('Please enter the value of Qe: ' );
fn=-10:0.5:10;
ga=(1/(1+Qs^2*(fn-1/fn)));
figure(1)
plot(fn,ga);title('SRC DC characterictics');xlabel('Normalised frequency');ylabel('Gain')
end
댓글 수: 1
Wayne King
2012년 12월 3일
Please give us enough information to reproduce an error, what is a reasonable input for Qs?
답변 (1개)
Wayne King
2012년 12월 3일
편집: Wayne King
2012년 12월 3일
It may be as simple a matter of doing
ga=(1./(1+Qs^2*(fn-1./fn)));
but you should give us the value(s) of Qs so we can actually reproduce the error
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!