Filter löschen
Filter löschen

division of an equation

2 Ansichten (letzte 30 Tage)
Chithralekha
Chithralekha am 31 Jan. 2013
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

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 31 Jan. 2013
Bearbeitet: Azzi Abdelmalek am 31 Jan. 2013
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));

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by