Getting "Matrix dimensions must agree." warning, please help.
1 回表示 (過去 30 日間)
古いコメントを表示
x = -1:0.3:2
y = -(1/((x-0.3).^2+0.01)+1/((x-0.9).^2+0.04))
plot(x,y)
when i run the program, i get this error
??? Error using ==> mldivide
Matrix dimensions must agree.
Error in ==> O4P9 at 12
y = -(1/((x-0.3).^2+0.01)+1/((x-0.9).^2+0.04))
why is that, what should i do to be able to plot? please help.
0 件のコメント
採用された回答
Grzegorz Knor
2011 年 10 月 19 日
Add the necessary dots:
x = -1:0.3:2
y = -(1./((x-0.3).^2+0.01)+1./((x-0.9).^2+0.04))
plot(x,y)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Polar Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!