FOC Simulink (MATLAB 2020a) Errors

When I run the simulation the inverse Park transform gives me one dimensional vector errors. I don't understand why this is happening.
347 Downloads
Updated 15 Apr 2020

View License

Hi everyone,

I am trying to develop an FOC algorithm (see screenshots attached) using the Motor Control Blockset in Simulink but I am getting the following errors (see screenshot attached). I don't know waht I am doing wrong since I fed my d and q currents to my Discrete PI controllers and fed the results straight into my Inverse Park Transform. I don't know how to solve this and any help would be greatly appreciated.

Cite As

jefazo jefazo (2026). FOC Simulink (MATLAB 2020a) Errors (https://www.mathworks.com/matlabcentral/fileexchange/75028-foc-simulink-matlab-2020a-errors), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0