How to change parameters value on simulink model trough GUI ?

Hi, I'm Wina I'm new to matlab and now learning to built an op-amp application (inverting amplifier) using GUI matlab and simulink. But i have problems on how to connect my simulink model with the GUI..?? I have 3 blocks on the simulink that i want to edit the value trough GUI there are AC Voltage Source and two Resistors and then display the output value on the GUI. Here the attachment of the file :
Thankyou very much for your help

1 Comment

Your .zip contains a .fig and a .mdl -- where is the inverting.m that corresponds to inverting.fig ?

Sign in to comment.

Answers (2)

I'm sorry... i forgot to insert the file... here the complete file inverting.fig, inverting.m and the model inverting1.mdl http://www.4shared.com/file/N3JY3KO-/inverting_2.html
You may find this documentation example useful: A GUI to Set Simulink Model Parameters

3 Comments

Thankyou Kaustubha... i've read the guide, but it's difficult for me to understand... how to implement it to my simulink... i need the similar example so i can easily learn it... if you wouldn't mind please check my files...
should i use sim () or set_param ?
You can use set_param to set parameter values as per your GUI, and then use sim to run the simulation. Please follow the documentation and post back if you run into specific issues. It is a little unreasonable to expect forum contributors to download files, because we do this in our spare time.

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

Nn
on 19 Dec 2011

Community Treasure Hunt

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

Start Hunting!