change a vector of a matrix
Ältere Kommentare anzeigen
Hi, I have a function
function survival(Si) where Si is a matrix (mx8)
Inside the function I create a vector 'status (mx1)', at the end I want to change one of the columns of the matrix Si by 'status'. The idea is that the matrix that the function use as 'entry' change, for use it in the next step. thanks
Akzeptierte Antwort
Weitere Antworten (1)
David Sanchez
am 12 Jun. 2013
use the matrix as an output argument too:
function Si = survival(Si)
%your code here, you can change your Si matrix too
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!