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

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

댓글을 달려면 로그인하십시오.

답변 (2개)

Nn
Nn 2011년 12월 19일

0 개 추천

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
Kaustubha Govind
Kaustubha Govind 2011년 12월 19일

0 개 추천

You may find this documentation example useful: A GUI to Set Simulink Model Parameters

댓글 수: 3

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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

Nn
2011년 12월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by