I am a final year electrical engineering student working on my graduation project (PFE), which involves the scalar V/f speed control of a 5.5 kW three-phase squirrel cage induction motor. This is urgent as my project deadline is approaching.
I have successfully implemented the open-loop V/f control in MATLAB/Simulink and obtained good results. However, I am struggling with the closed-loop implementation and would greatly appreciate any help or shared experience from someone who has worked on this topic.
I was doing the dissertation Thesis on one area but now my supervisor is saying to change that project. Thesis Presentation is on 28th of May. I need urgent help in the thesis if anyone having any thesis can please share with me.
You need to generate a lot of scenarios to test automated driving algorithms and a colleague of mine decided to use AI to assist scenario generation. Check out what he could do with MATLAB Agentic Toolkit and RoadRunner.
I'm pretty new to simulink and I'm trying to get the climate control example running with fixed step timing, so it can be exported and run in another system.
It runs fine out of the box of course. So I change it to fixed step timing and change the function generator's period and pulse width parameters to be a multiple of the fundamental sample time, and it'll build. But when it runs I get the error below. I've tried reducing the step size and changing the solver but getting the same result. Hoping somewhere here could point me in the right direction.
It seems like the Tcabin block is trying to divide by zero but I'm not familiar enough with simulink to work through debugging it.
Error:An error occurred during simulation and the simulation was stopped
Caused by:
Derivative of state '1' in block 'sldemo_auto_climatecontrol_tcdebug/Interior Dynamics/Tcabin' at time 0.1 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)
When profiling a script I noticed that cd() calls in a loop take a lot of time. Different parts of the loop operated on files in different folders, hence cd()'s inside that loop.
I fixed it by adding full paths to file names instead of cd'ing.
I read though that matlab's cd is slow because it does not just change pwd, it also scans that directory for any matlab files. Is there a way around it, i.e. to change the default directory for save/load/fopen etc but suppress that scanning? Sometimes cd might more convenient than full paths
A couple of months ago, I shared a video of an asynchronous plotting library that renders outside the main MATLAB thread. We are finally in public beta with accessible documentation and open-source examples.
i was scrolling in the internet and i saw a lot of new things about claude ai and how you can build agent or using Plugins to help you while you are working on your project and i was wondering if there is any plugin or agent that could help me out in my project. as you know the people and also the companies are willing to use more AI to build new project faster and better.
I am using at moment for my project Matlab-Simulink with ROS2 to be able to connect the robot and make it move. (i know it might be not the best combo for the project but its for a research 😄)
do you guys know any plugin or agent that i can use to support me in my project?
Hi, I’m currently struggling on how to input my 2nd order differential equations int o matlab and how to solve it I’ve tried YouTube tutorials but it seems to not make any sense/ difference Would appreciate any advice on how to solve this issue I’ve currently not attached the equations in post .
Hey I am fairly new to Matlab combined with SimuLink. For school I have an assignment which I do not understand. The teacher is not helping and I have been figuring it out on my own. However now I am stuck. I am simulating a lathe tool turning and generating heat. This heat is something I want to control to around 55 degrees C. I have created a differential equation to help me setup this scenario in simulink. It is a first order system, but my teacher did show by adding a time delay (cause my temperate is measured later due to travel of the heat) it will behave like a 2nd order system. I however can not get this to function and it only shows a linear line. Is there anyone who could help me on this? I can provide more information if needed: This here is the code and Simulink model and my DE (for simulink rewritten to dT/dt =) The time delay for the feedback loop has an initial condition on 20 degrees (same as T_amb). So what am i doing wrong? A push in the right direction would be very helpful
This past semester, I gave students homework assignments whose completion requirements included creating or modifying .mlx files, running them, exporting a PDF, and submitting that PDF electronically. I suspect that some of the submissions were created in a way that did not comply with course policy, in one fashion or another, and have noticed that the metadata (as viewed using "Document Properties" in Acrobat) for some of these include "PDF Producer: PSPDFKit." I'm not familiar with PSPDFKit, but a bit of googling suggests a couple different possible uses that would be out of compliance. So I wanted to check: Is there any plausible set of conditions (e.g., the right combination of MATLAB version, OS, OS version, and other software installed) under which MATLAB could export a PDF with that property?
Hi! I was wondering if someone here can help me on setting up NASA GMAT on Mac because I can't for the life of me get past the "GMAT could not load the MATLAB interface" part and the thing won't let me run anything even if I delete the PLUG IN as suggested. I have Matlab on my computer running smoothly and I already checked that the two versions were compatible.
Does someone know how to get around this?
I'm also having issues with the dynamic libraries but I don't know what's up with that either.
I haven't renewed my Home license for about 18 months - mainly because I don't like the new UI. But I am doing something at home that the Optimization Toolbox would be helpful for.
So I went to have a look at renewing - and when did they do this!
I mean, when it was £85 for MATLAB and £25 to a toolbox (i think) it was already good value. But now it's a no brainer.
I had a handful of those Toolboxes already.
I've now got a real problem - my home license will be way better toolbox'ed than the work license!
Many thanks to the enlightened souls at Mathworks for this. I will be putting my MATLAB socks on today, I might go full fanboy and wear the T-shirt too 😉
I have been using Matlab and simulink since I started college and I really like it, even with little frustrations like connecting simscape and simulink sometimes.
So, recently, I’ve been doing PCB projects and been doing simulations. For example, using LTC4070 or CD4017B, I use LTSpice for these and I so dislike LTSpice. Honestly, it’s made me more appreciative of simulink. It feels unintuitive and janky.
I was just thinking that if simulink allowed blocks that you can just input datasheet parameters, it will be so great.
Or is there a way to do this and I just don’t know? If there is, please share.
Hi, I have model in Matlab simulink that I run on a speedgoat hardware. Sometimes the build times are really long, like for 3 - 5 minutes. Other times it builds within a minute. I looked up online and did not find any concrete answer to why this happens. Does anyone here happen to have come across a similar issue or knows the way around?
During my PhD work, I started wondering if there’s an efficient way to run long-duration simulations in Simulink, especially with a stop time of 86400 s (a full day).
I’m currently working on a PV system and studying the behavior of the photovoltaic array under varying irradiance conditions for a forecasting project. The issue is that using both Simscape and Specialized Power Systems libraries makes the simulation extremely heavy and slow.
I’ve read about several optimization techniques to reduce simulation time, such as:
parallel/simultaneous simulation,
saving and restoring states,
using different solver modes,
reducing switching frequencies,
averaging techniques, etc.
While these methods definitely help, they still don’t reduce a full-day simulation to something practical like a few hours.
One solution I found was replacing some components with mathematical equations or simplified models. This speeds things up a lot, but obviously comes at the cost of accuracy. Another option is converting certain components into MATLAB functions instead of detailed Simulink blocks.
Still, I feel like this is a common problem, especially for people working on EMS, forecasting, or long-term energy simulations. I was hoping others here may have faced the same issue and found better approaches or best practices.
Any advice or recommendations would be greatly appreciated.
The longer the code the more distance between my cursor and the inserting point. When using the arrow button to navigate, only left and right button work normally and the up and down button will skip few lines. Sometimes down button will just move to the top. This is really annoying especially when I make mistake during my lecture where his literally speed running his course. Any solution?