How to convert matlab file into a voltage signal in simulink
이전 댓글 표시
Hi, I have a code where it is a sin wave for first 0.6 seconds and 0 for the next 0.4 seconds. Which i have created using if statements etc. so its a matlab file. Now thing is i want to generate this as a voltage supply, how do i import this matlab file into the voltage supply. I know there is a 'from workspace' and 'from file' function. but i have no idea how to use this. thanks.
채택된 답변
추가 답변 (4개)
Orion
2014년 12월 18일
1 개 추천
I already answered you in your previous post, it's a best practice to do it directly with Simulink blocks.
But if you insist to use directly an external mfile, you need to use another block : interpreted matlab function
댓글 수: 3
Saurabh Sakpal
2014년 12월 18일
편집: Saurabh Sakpal
2014년 12월 18일
And best practice, because calling external files often creates some debugging problems.
Saurabh Sakpal
2014년 12월 18일
카테고리
도움말 센터 및 File Exchange에서 Choose and Parameterize Blocks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

