I have a function that goes something like this:
function [] = function1
-variable1= value1; -variable2= value2;
-matrix1=[] -matrix2=[]
-loops that fill in matrix1 and matrix2
-more declarations
-final function1 end
function2[] takes values from function 1 and does stuff, creates new variables funcion2 end
function3[] that uses values from function 2 and function4[] that uses function 3.
(Sorry for all of that by the way). Now, my question is, is there anyway to save variables, arrays, etc. in the workspace for later analysis? All 4 functions are on the same tab in the MATLAB editor.
savefor saving either full workspace or selected variables. Sorry, but a simple google search would have solved the problem, so -1[out1,out2,etc..] = function1(in1, in2, in3, etc...)). Also this is not a good way to ask a question, very hard to read. Rather make up simplified mock functions (i.e. a minimal working example) that demonstrates your issue.