division of an equation

1 次查看(过去 30 天)
Chithralekha
Chithralekha 2013-1-31
while writing the following in matlab,
la=(-1:0.1:1)*pi;
T10=a01/(1+b1*cos(la));
message saying matrix dimension must agree.please tell me how to write this in matlab

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-1-31
编辑:Azzi Abdelmalek 2013-1-31
You can't divide 1 by [ 1 2 3] , you should use operation element by element ./ or .* or .^
la=(-1:0.1:1)*pi;
T10=a01./(1+b1*cos(la));

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by