Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

save GUI

Status
Not open for further replies.

ati hsn

Mechanical
May 6, 2023
5
Hi all
I made a gui window for calculating some parameters. When I run the gui program, I insert the inputs in editable boxes and push the "Calculate Outputs" button, then The answer is displayed in the embedded boxes. My Problem is that when I close this gui window and open (run) it in the next time, the inputs reset and return to default values. Is there any way to keep (save) the input numbers in the another file for call them the next time ?
Similar to command: File-Open

Thanks
 
Replies continue below

Recommended for you

I haven't messed around with MATLAB GUIs in a decade, but any reason you can't make 2 buttons for writing and reading a results file? Each could just use one of the built in functions for reading and writing a csv file (or whatever other format tickles your fancy).
 
Save the values (new or old) in an Excel spreadsheet used as a database. Use xlmread or xlmwrite to fetch or save values from previous use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor