inputdlg window moves down by itself.

12 ビュー (過去 30 日間)
Manuel
Manuel 2024 年 3 月 19 日
コメント済み: Kausthub 2024 年 3 月 27 日
When I use an input dialog with four fields, the opened window to enter the values moves down on the display by itself. With only three fields, everything just works fine.
% Input field
prompt = {'Enter U(V)','Enter U_{X}(V)','Enter U_R(V)','Enter R(Ω)'};
dlgtitle = 'Values for 3-voltmeter method';
fieldsize = [1 45; 1 45; 1 45; 1 45];
definput = {'20.0','10.659','9.344','100'};
answer = inputdlg(prompt,dlgtitle,fieldsize,definput);
if isempty(answer)
% Known values:
U = 20.0; % V
U_X = 10.659; % V
U_R = 9.344; % V
R = 100.00; % Ω
else
U = str2double(answer{1}); % V
U_X = str2double(answer{2}); % V
U_R = str2double(answer{3}); % V
R = str2double(answer{4}); % Ω
end
  1 件のコメント
Kausthub
Kausthub 2024 年 3 月 27 日
Hi Manuel,
Even I am facing the same isse. I believe this is a bug and hope MathWorks development team is working on it and will fix it in the coming releases..

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by