|
On Oct 20, 9:07 am, "Teodor " <teodoralexan...@yahoo.com> wrote:
> Hello!
> I have a box that displays all the variables from the workspace and I can take the variable name with a handle function. After a few operations I can generate a vector.
> In the end I want to save that vector in the workspace. The final saved VARIABLE from the workspace should be with the NAME of the variable chosen (with the handle function) and with the VALUE of the generated vector.
> I don't know how to do it. Can you help me with this problem?
> In this moment I know only how to save the generated vector into the workspace using:
> save matlab result_vector -APPEND;
> And in the workspace I get the Name of the variable:"result_vector"...
---------------------------------------------------------------------------------------------------------------
I believe you're talking about the "base" workspace. But regardless,
I believe you want the assignin() function, which can stuff your
variable into any workspace.
|