Making dialog box parameters for MATLAB function blocks
Mostra commenti meno recenti
Hi everyone, I'm a beginner at creating my own Simulink blocks and I was wondering if anyone could help with this.
Anyway, I'm trying to implement a MATLAB function as a block in Simulink. The function has multiple inputs as is, but I'd like to change some of the inputs to parameters that can be changed via dialog box if possible.
So suppose the block represents a simple function (far simpler than the one I want to work on):
function [x, y] = fcn(u, v)
%#codegen
x = u + v;
y = u - v;
How can I turn y into a parameter that can be tuned via dialog box rather than an input?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Simulink Functions in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!