how can I multiplying matrix elements

Respuestas (1)

Image Analyst
Image Analyst el 5 de Nov. de 2012
% Multiply a row by some number.
theRow = 42; % or whatever.
myMatrix(theRow, :) = someNumber * myMatrix(theRow, :);
% Multiply a column by some number.
theColumn = 13; % or whatever.
myMatrix(:, theColumn) = someNumber * myMatrix(:, theColumn);

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 5 de Nov. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by