필터 지우기
필터 지우기

finding the right values for a vector

조회 수: 1 (최근 30일)
Tim Elbers
Tim Elbers 2019년 5월 17일
댓글: madhan ravi 2019년 5월 17일
hi all,
i want to obtain the right value's for for a vector that has dimensions 1 by 15 of the following form
[? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ]*[1 : 15]' = a
How could i obtain the matrix with the ? 's in matlab in the the easiest way
  댓글 수: 2
madhan ravi
madhan ravi 2019년 5월 17일
Is a scalar ? Because * performs matrix multiplication.
Tim Elbers
Tim Elbers 2019년 5월 17일
no a is just a value

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

답변 (1개)

Stephen23
Stephen23 2019년 5월 17일
>> V = (1:15).';
>> a = pi;
>> M = a/V
M =
0.0025335 0.0050671 0.0076006 0.0101342 0.0126677 0.0152013 0.0177348 0.0202683 0.0228019 0.0253354 0.0278690 0.0304025 0.0329361 0.0354696 0.0380031
Checking:
>> M*V
ans = 3.1416
  댓글 수: 1
madhan ravi
madhan ravi 2019년 5월 17일
+1 , I got confused with mldivide() ;/

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

카테고리

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