How to write a text in INPUTDLG without a field?

1 回表示 (過去 30 日間)
Sarath S
Sarath S 2020 年 6 月 11 日
コメント済み: Star Strider 2020 年 6 月 11 日
I was trying to create an input dialog box for gathering the co-ordinates of two nodes, A & B.
Is it possible to have a text that just says Node A, without any entry field next to it. It should be followed by three fields x,y,z and then another text saying Node B, followed again by the x,y,z fields.
Something like this:
Node A
x: ___
y: ___
z: ___
Node B
x: ___
y: ___
z: ___

採用された回答

Star Strider
Star Strider 2020 年 6 月 11 日
That does not appear to be an option.
Try this:
prompt = {'Node A: x:', 'Node A: y:', 'Node A: z:', 'Node B: x:', 'Node B: y:', 'Node B: z:'};
v = inputdlg(prompt, 'Nodes', [1 35]);
.
  2 件のコメント
Sarath S
Sarath S 2020 年 6 月 11 日
Yeah, this is what I'm using currently. I tried adding a \n in between Node A and x, but that does not seem to work either. Thanks anyways!
Star Strider
Star Strider 2020 年 6 月 11 日
As always, my pleasure!
You might be able to do what you want with GUIDE or App Designer (that I would not be able to help you with because I very rarely use them).

サインインしてコメントする。

その他の回答 (1 件)

Sai Gudlur
Sai Gudlur 2020 年 6 月 11 日
編集済み: Sai Gudlur 2020 年 6 月 11 日
Hello Sharat,
This would of some help to you.

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by