Category Matlab

Matlab News Blog From https://blogs.mathworks.com/

Error when generating code

The build worked fine. When i try to generate the code from simulink model, I’m prompted with this error. Matlab version : 2020aThe build worked fine. When i try to generate the code from simulink model, I’m prompted with this…

How to avoid recursion with parenReference

Using Matlab 2021B version I create a class which inherits both handel & matlab.mixin.indexing.RedefinesParen. classdef Abc <handle & matlab.mixin.indexing.RedefinesParen I create object arrays using this class. I want to overload the parenthesis for the class so that it can perform…

Fault Tree Analysis in MATLAB

this shows a demo fault tree. the goal is to calculate the top-event ‘1’ ‘s probability of failure given ‘3’,’4′,’5′,’6′,’8′,’9′,’10’ ‘s probability. the code may involve something about Boolean algorithm, i am wondering how to realize Boolean algorithm in MATLAB…

Self pace course issue

There appears to be a bug in the self-pace course. I have a habbit of using my keyboard to move the simulink blocks around, in particualr the arrow keys. When I do, the course crashes and locks me out of…

Control Techniques for PMSM

Currently I’m Taking Control Techniques for PMSM (new), at Current Controller Optimization, Implement MTPA and FWC to optimize your controller. I start taking the task, from 1 to 3 all no issues, but when I take the task 4, and…

Generic Engine will not engage

I am aiming to create a Hybrid electric vehicle architecture with four wheel drive to simulate wide-open-throttle. I also aim to introduce a DCT. I cannot get the Generic Engine to work individually – it will run at the initial…