Effacer les filtres
Effacer les filtres

Multiplying/Dividing a Column Vector with a Constant

20 vues (au cours des 30 derniers jours)
Sheetansh Kaushik
Sheetansh Kaushik le 28 Mai 2013
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!

Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 28 Mai 2013
Nr = Test_dist ./ circumf;

Plus de réponses (1)

Iain
Iain le 28 Mai 2013
" ./ .\ .^ and .* " are elementwise operations.
  1 commentaire
Sheetansh Kaushik
Sheetansh Kaushik le 28 Mai 2013
Mate thanks a lot for the prompt reply!!

Connectez-vous pour commenter.

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by