필터 지우기
필터 지우기

How could I figure out the m.file inside MATLAB simulink file? because I wanna change some parameter. Thanks

조회 수: 6 (최근 30일)
My problem is I have an example but I could not find inside the simulink

채택된 답변

Walter Roberson
Walter Roberson 2016년 9월 29일
Right-click on a block and click on Explorer. On the page that comes up, in the Model Hierarchy, there will be a node for "Code for ..." (e.g., "Code for vipmosaicking"); click on that. That should allow you to see any associated standalone code.
If, though, the block is a MATLAB Function, then there will be a node in the hierarchy entitled "MATLAB Function": right-click on that and select Open. Alternately, if you know that a block is a MATLAB Function, then right in the graphical model view you can right-click it and select Open to be taken directly to the code.
  댓글 수: 9
Walter Roberson
Walter Roberson 2016년 10월 2일
I had to hunt around but I found it in VDC_Regulator there.
The Block Parameters for gain there shows up as 1/Vnom_dc . You can change that expression if you want.
In chasing through the model, at the moment I do not find any Vnom_dc defined. I do see that Invertor_Control has Vnom_dc1 which is a Constant Block whose value is Vdc_ref_Init . Looking at that diagram for Invertor_Control I see there is a Vdc_ref_init defined there.
At the moment I do not know how to track down the value assigned to Vdc_ref_init -- and I do not know if Vnom_dc1 should be connected to Vnom_dc
Zaid Adam
Zaid Adam 2016년 10월 3일
Thanks for your cooperation, I really need to figure out that, if you figure out that let me know please.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by