フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Enter input value interactively in Matlab

1 回表示 (過去 30 日間)
William
William 2014 年 4 月 15 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I would like to be able to enter a value interactively in Matlab. However, I am also using the "Matlab Function" block in my Simulink model. This block only takes scalar input. I know how to use "From Workspace" to enter the input but it has be a vector. How can I get around if I want to keep the "Matlab Funciton" block in my Simulink model.
Thanks in advance
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 4 月 15 日
This is not clear

回答 (1 件)

Image Analyst
Image Analyst 2014 年 4 月 15 日
I don't know Simulink, but if it can run MATLAB code, why not just call inputdlg() to pop up a dialog box that asks the user to input some values?
  5 件のコメント
Image Analyst
Image Analyst 2014 年 4 月 16 日
I don't know - I don't have Simulink. But I think I've heard that Simulink users can run MATLAB chunks of code. Perhaps the training documents for Simulink will show you how.
I'll removed Coder (which builds C programs from MATLAB code), and add Simulink to the product list.
William
William 2014 年 4 月 17 日
I updated my product o Simulink.

この質問は閉じられています。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by