Enter input value interactively in Matlab
Informazioni
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Mostra commenti meno recenti
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 Commento
Azzi Abdelmalek
il 15 Apr 2014
This is not clear
Risposte (1)
Image Analyst
il 15 Apr 2014
0 voti
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 Commenti
Image Analyst
il 15 Apr 2014
By the way, why did you list the Coder product instead of Simulink?
William
il 16 Apr 2014
William
il 16 Apr 2014
Image Analyst
il 16 Apr 2014
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
il 17 Apr 2014
Questa domanda è chiusa.
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!