Info
This question is closed. Reopen it to edit or answer.
You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
App design GUI for Numeric/Text edit fields
12 views (last 30 days)
Show older comments
App I want to add numeric,text and query edit button to my App.
% Requirement-1
xstart = uieditfield(app.UIAxes,'numeric'); % Get start number from app.UITable.RowName
xstop = uieditfield(app.UIAxes,'numeric'); % Get stop number from app.UITable.RowName
% Requirement-2
xstring = uieditfield(app.UIAxes,'Text'); % Get a string from t_table
% Requirement-3
xquery = query(app.UIAxes); % String search in whole structure joinedtimetable
My Code is added in the attachment with Input test data. I need help on implemention .
Thank you!!
14 Comments
Life is Wonderful
on 25 Jan 2020
Please find the attached SysDebug_AppDesign.mlapp file & Input file for testing .
Can you please help me with in case String is from GUI ? Example : ERROR|
String = find(strcmp(field,'ERROR|')); % How to input the string data - changingValue = event.Value ??;
if ~isempty(String)
x = String(1); % Force string as starting index for data plottting
end
Life is Wonderful
on 27 Jan 2020
Edited: Life is Wonderful
on 28 Jan 2020
I assume you're referencing the InputIndexSpinnerValueChanged function
No, Iam referencing app.EditTextEditField. Act as input , where ERROR| is a hardcoded one. In the moment ,it's greyed out in color.
String = find(strcmp(field,'ERROR|'), 1);
My requirement is , How to input Text string from Edit Text box
Please unzip latest code and follow below steps
My Question :How to Enter Text data from Edit Text button using GUI ?
How to use gui
- UI Figure is divided into 3 section
Left,Center,right
Start with Center panels
- Click Read File button
Locate the file path : Input file /../../Output_data/matfile1.mat
- A figure with combined output will be open
Next right panel under configuration_parameters
- Upon success load "matfile1.mat"
- Output content is loaded as time table in the right side bottom
- From the Drop-down(4) option menu, select your option. If none, default is selected
- From the Edit Start, enter your row index to starting point. If none, default is selected
- From the Edit Stop, enter your row index to stop point. If none, default is selected
- From the Edit Text, enter your Text to start point. This is disabled for now. TBD
In the last step, Press plot-start button located in the right panel top ( green color)
Thank you!!
Adam, Any help here ?
Walter Roberson
on 28 Jan 2020
Caution: poster likes to remove their part of discussion, so anyone who responds should quote all relevant context so that the discussion still makes sense later after the user has tried to use us as their unpaid private consultants.
Life is Wonderful
on 28 Jan 2020
Edited: Life is Wonderful
on 28 Jan 2020
At one point of time - you wrote back to me , no one is going code for me ( I was seeking a template code for implementation ) then where was the question of unpaid private consultants ...
In exchange of help - personally I express my sincere gratitude for help, can't earned via paid service as well.
Regarding deleting the certain section- I removed for a reason since it's not adding any value to conversation. I am learner and NOT looking to score points.
Life is Wonderful
on 28 Jan 2020
My Sincere apologies for the inconvinience to the forum.
I don't know if there is a way to revert back . Kindly help me.
Walter Roberson
on 28 Jan 2020
The volunteers, when they feel so inclined, answer public questions with public responses, and expect that for the most part the contents of the discussion will be left intact. In this way, everyone who chooses to look can see the discussion and learn from it.
When discussion is removed by the poster, then the discussion was of value to the original poster of the question, but the responses the volunteers made lose context, and become much lower value to anyone who chooses to look at the discussion afterwards. The effect is as if the poster extracted free private consultation from the volunteers. The volunteers are often fairly unhappy when that sort of thing happens.
Life is Wonderful
on 29 Jan 2020
Edited: Life is Wonderful
on 29 Jan 2020
Could you reframe the question into something that doesn't require using the GUI?
How to provide input's from User GUI
- Numeric value
- Text character ( would prefer autotype from read input file table content ( please see the attachment matfile.ziip)
I have a prototype code
prompt = {'Enter start Index:','Enter stop Index:','Enter search phrase:'};
xstart = 'Input';
xstop = 'Input';
dims = [1 35]; % diagBox size-Don't alter
definput = {'20','30','MyString'};
UserInput = inputdlg(prompt,xstart,dims,definput);
Start_Index = str2double(UserInput{1}); % Number
Stop_Index = str2double(UserInput{2}); % Number
Text_Phrase = UserInput{3}; % Text char
Life is Wonderful
on 29 Jan 2020
I got the right implementation now. I think I can close this issue now
Thank you very much for your help!!
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)