Assigning outputs variable names
11 views (last 30 days)
Julia de Lange on 27 Jul 2018
I'm using the function findchangepts, which outputs 2 numerical values for me. I'd like to use these values and manipulate them further. How can I assign them separate variable names?
SamplNum = findchangepts(SensV, 'MaxNumChanges', 2);
So I'd like to assign both of those sample numbers a variable in order to manipulate them.
Thanks for your help, sorry if this is a simple question/answer, I'm new to Matlab!
Philipp Heinirch on 27 Jul 2018
I am not sure how the function is working, but you could simply do
or you do
[Variable_1, Variable_2] = findchangepts(SensV, 'MaxNumChanges', 2);
and adapt the code in-between.