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