Info

此问题已关闭。 请重新打开它进行编辑或回答。

help in a matrix

1 次查看(过去 30 天)
shiro
shiro 2014-2-21
关闭: MATLAB Answer Bot 2021-8-20
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 个评论
Thomas
Thomas 2014-2-21
can you post your function?

回答(1 个)

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

此问题已关闭。

标签

Community Treasure Hunt

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

Start Hunting!

Translated by