필터 지우기
필터 지우기

Multiplying/Dividing a Column Vector with a Constant

조회 수: 20 (최근 30일)
Sheetansh Kaushik
Sheetansh Kaushik 2013년 5월 28일
Hi!
I have used Maltab, but have lost the touch and am experiencing a block for now . Please consider a column vector: Circumf, with 100 values.
A constant with Test_dist = 250.
Now, i wish to create a new column vector which is division of the constant by the column vector, i.e.
for example: Nr(1,1) = 250 / circumf(1,1);
.
.
.
Nr(100,1) = 250 / circumf(100,1);
Please let me tell me atleast the command or the method. Thanks in advance!

채택된 답변

Andrei Bobrov
Andrei Bobrov 2013년 5월 28일
Nr = Test_dist ./ circumf;

추가 답변 (1개)

Iain
Iain 2013년 5월 28일
" ./ .\ .^ and .* " are elementwise operations.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by