필터 지우기
필터 지우기

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