Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
App design GUI for Numeric/Text edit fields
조회 수: 2 (최근 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 (한국어)