Matrix dimensions must agree. How can i fix it?
조회 수: 1 (최근 30일)
이전 댓글 표시
BPR=linspace(0,100,1000); f=0.015; V0=300; Vu=600; Qf=45000000; RendimentoTH= 0.5*(Vu^2-V0^2)/(BPR.*f*Qf); xlabel('/BPR');ylabel('/RendimentoTH'); plot(BPR,RendimentoTH,'.-')
In line 6, when i try to plot, this error appear. How can i fix it? It's the first time that i use Matlab and Thank you for help
댓글 수: 0
채택된 답변
David Goodmanson
2018년 3월 31일
Hi Guiseppe,
You need to do ./ (dot divide) rather than / (divide). That way each element of the denominator is independently divided into the numerator.
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!