How to write a text in INPUTDLG without a field?
조회 수: 9 (최근 30일)
이전 댓글 표시
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: ___
댓글 수: 0
채택된 답변
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
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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!