Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE 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
Joined
May 6, 2023
Messages
5
Location
IR
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
 
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

Back
Top