필터 지우기
필터 지우기

how to multiple this matrix

조회 수: 1 (최근 30일)
Nasir Qazi
Nasir Qazi 2012년 2월 19일
편집: Cedric 2013년 10월 16일
C = [0.20 0.10 0.10 0.20 0.20 0.20];
Pv = [190 72.2 51.6 20.44 15.57 4.956];
P = 50;
K = Pv/P;
% calculate nv
A = C*(K-1);
% I cannot get the value of A .
  댓글 수: 1
Jan
Jan 2012년 2월 19일
It is helpful if you read and post the error message.

댓글을 달려면 로그인하십시오.

답변 (1개)

the cyclist
the cyclist 2012년 2월 19일
Use the syntax
A = C.*(K-1);
Notice that I used .* rather than just *. That syntax is for element-by-element multiplication, rather than matrix multiplication.
  댓글 수: 2
Nasir Qazi
Nasir Qazi 2012년 2월 19일
cool that's brilliant . cheers for thats
the cyclist
the cyclist 2012년 2월 19일
You might consider "accepting" this answer, which could help others who are seeking similar solutions.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by