Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How simulink function passes the input parameter to matlab?

조회 수: 2 (최근 30일)
Luiz Souza
Luiz Souza 2020년 4월 7일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello, i am trying to get the RMS value from an AC voltage source in simulink (discrete formula)
I'm using voltage sensor and rate transition to discretize, however, i don't understand what the rate transition passes to my matlab function.
Using sample period as 0,00001, i understand i should receive, as output, a vector v(sample).
Thing is: i have to sum the square of all the values collected during one period and divide by the number of samples, but how do i do that?
If the input is called "u", i can't, for example, sum u(1)+u(2), since MATLAB function only recognizes u(1), saying that u(2) is another input
How can i do that?
Thanks

답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by