division of an equation

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

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 31 de En. de 2013
Editada: Azzi Abdelmalek el 31 de En. de 2013

0 votos

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));

Categorías

Más información sobre LTE Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 31 de En. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by