Call existent gui as a new project
Show older comments
I've created a gui program named msp. This program contains several edittexts. I now want to create a pushbutton that invokes msp every time it's clicked, and adds numbers to the edittext and saves it with a special name. I want to do this operation every time I click and save each time with a special name.Is there a possibility in gui that I can use it and store it with a gui call?
5 Comments
Shameer Parmar
on 27 Jun 2019
Yes, this is possible..
but to understand it completely I have few doubts here.. please answer..
- can you tell what numbers you want to add to edittext of your gui?
- from where that number will be added to this edittext ?
- what special name you want to give to save your file ?
- from where you are passing that special name to your file ?
- in which format you want to save your file ?
Stephen23
on 28 Jun 2019
Fayez Ferdospanah's "Answer" moved here:
Thank you for your answer.
- I have 107 edittexts.
- The amount of edittexts that are numbered are entered by the user.
- The file name is customized by the user.
- A special name is entered by the user.
- The file type is the in gui file.
Stephen23
on 28 Jun 2019
Shameer Parmar 's comment moved here:
so its looke like.. you have GUI which is having 107 edittext, where user will enter the numbers.. In one of the edittext user will enter the filename and at the end user will press the push button which will save all this data.. is this correct ? please tell me, then only I can help you..
if this is correct then tell me in which format you want to save the data entered by user ?
Fayez Ferdospanah
on 28 Jun 2019
Yes, exactly ... 107 edittexts that are stored by pressing a push button. I'm trying to save the whole window as a .fig file. Of course, if you have a suggestion, tell me about the type to save.
Shameer Parmar
on 28 Jun 2019
Ok here I will try to help you by creating gui with 107 edittext + push button, but once we will press the push button the entered data will be saved in excel file (filename will be the same as entered by user).. you can then modify it to save the data to fig file or image file.. let me try this first..
Answers (1)
Shameer Parmar
on 28 Jun 2019
1 vote
Hello Fayez,
Here I have created Test GUI for you..
run attached 'TestingTool.m' file.. it will open gui...
You can enter the fileName and all 107 values.. then click on push button.. it will save the entered data into excel file and will open it..
If you change the data, then you need to change the filename as well to save the new data into new filename.. and so on..
I hope this will help you..
1 Comment
Fayez Ferdospanah
on 28 Jun 2019
Thanks ... it works well and solves many of my problems.
Categories
Find more on Scope Variables and Generate Names in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!