Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

help in a matrix

1 visualización (últimos 30 días)
shiro
shiro el 21 de Feb. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have a matrix with 700 rows and 3 columns, i want to make a function that checks every row and stores the output in a new matrix but it only checks on one row only, is there a way to make it check on all rows?
  1 comentario
Thomas
Thomas el 21 de Feb. de 2014
can you post your function?

Respuestas (1)

Chad Greene
Chad Greene el 21 de Feb. de 2014
This function returns an array that is the row of your matrix times five.
function [out] = mynewfunction(matrix,row);
out = 5*matrix(row,:);

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by