Info
此问题已关闭。 请重新打开它进行编辑或回答。
App design GUI for Numeric/Text edit fields
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
Adam Danz
2020-1-24
I'm asking why you don't add those components from
appdesigner('SysDebug_AppDesign')
Life is Wonderful
2020-1-25
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
Adam Danz
2020-1-26
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.
Life is Wonderful
2020-1-27
编辑:Life is Wonderful
2020-1-28
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
2020-1-28
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
2020-1-28
编辑:Life is Wonderful
2020-1-28
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.
Rik
2020-1-28
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.
Life is Wonderful
2020-1-28
My Sincere apologies for the inconvinience to the forum.
I don't know if there is a way to revert back . Kindly help me.
Adam Danz
2020-1-28
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?
Walter Roberson
2020-1-28
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
2020-1-29
编辑:Life is Wonderful
2020-1-29
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
2020-1-29
I got the right implementation now. I think I can close this issue now
Thank you very much for your help!!
此问题已关闭。
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!发生错误
由于页面发生更改,无法完成操作。请重新加载页面以查看其更新后的状态。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)
亚太
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)