Info
この質問は閉じられています。 編集または回答するには再度開いてください。
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
App design GUI for Numeric/Text edit fields
7 ビュー (過去 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!エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の 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 (한국어)