Save a variable in app designer

I designed an application and I want to store only one variable (my result) in to a .mat file from workspace. I have tried the
Save Final.mat Output
Where Output is the variable I wanted to save as Final.mat but could not get to save it. Is there any other way to do it?
Thanks in advance.

3 Comments

@Venkata Bhargav Tanguturi: in which workspace is that variable? If it is not in the same workspace as the function that is being called then your code will not work. Please upload your code by clicking the paperclip button.
Hi, I have created a separate button, which creates a .mat file of my variable output. I made the variable 'Output' as app.Output in properties to use it for another button and write a .csv file with it.
The csvwrite option works fine but when I try to run the save option to save the output, it doesnt work.
The variable output is double type.
Thanks
@Venkata Bhargav Tanguturi: please upload your code by clicking the paperclip button.

Sign in to comment.

Answers (0)

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Commented:

on 22 Jul 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!