Info

此问题已关闭。 请重新打开它进行编辑或回答。

What is the meaning of this error?

1 次查看(过去 30 天)
Eng Engv
Eng Engv 2020-7-6
关闭: MATLAB Answer Bot 2021-8-20
I have a pulse generator for a three-phase inverter
Then the pulses were inserted into a function to make the changes I needed
And this error appeared

回答(1 个)

Vasco Lenzi
Vasco Lenzi 2020-7-7
When you are using MATLAB function block, you need to carefully adjust data types. MATLAB works naturally with all doubles. You can either use the data type conversion block listed above by Hyunuk, or you can control MATLAB function interfaces using the Ports and Data Manager from the MATLAB function block toolstrip.
Additionally you may need to reassess the operation in your MATLAB function and eventually "cast" the data type in your operations, such as a = x * double (b)

此问题已关闭。

社区

更多回答在  Power Electronics Control

Community Treasure Hunt

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

Start Hunting!

Translated by