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!