App design GUI for Numeric/Text edit fields

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 个评论

Why not build the app in appdesigner?
Matlab's answer moved here as a comment.
App designer code is already there . Attached the *.mlapp file that input data.
I need right implementation way. Looking forward for your suggestion and input
I'm asking why you don't add those components from
appdesigner('SysDebug_AppDesign')
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
I assume you're referencing the InputIndexSpinnerValueChanged function but it's not clear to me what you're trying to do or how to recreate the problem.
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 ?
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.
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.
Why do you delete your comments? Why do you think your comments don't add any value? Now only one side of the conversation remains, which makes it difficult for others to benefit.
My Sincere apologies for the inconvinience to the forum.
I don't know if there is a way to revert back . Kindly help me.
It's still not clear to me what I should be looking for. Could you reframe the question into something that doesn't require using the GUI?
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.
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
I got the right implementation now. I think I can close this issue now
Thank you very much for your help!!

回答(0 个)

此问题已关闭。

关闭:

2020-1-29

Community Treasure Hunt

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

Start Hunting!

Translated by