Ein offener Austausch für die Community der MATLAB- und Simulink-Benutzer
Hello, Im relativley new to MATLAB nan coding and unsure how to proceed in structuring my Matlab code. For instance. if I had an equation (1) that out puts (a) and has mutliple varibles (B), (C), and...
0
answer
Hi Team, I am studying vector control, so this may be a strange question. I am looking to build an ACIM control reference in the architecture in the link below to implement vector control (FOC) of an AC induction motor. URL: ...
0
answer
I am trying to print a axis label using the following code to make it italicized ylabel('$u_max$','interpreter','latex','FontSize',14); I wanr the "max" to all be a subscript to "u" but as of right now only the "m" is a subscript and ...
1
answer
I am trying to the coordinates of a Koch snowflake fractal antenna designed using the Antenna Toolbox. Ail I get is a picture, and the antenna performance. I would like to have the coordinates so I can modify the design and/or send to fabrication. Thank you
0
answer
Attached is a pdf of the code that I have with a warning of matrix is singular to working precision that results in NaN for all values being solved for. Would love to know what is going on and how to fix it to produce numerical results
1
answer
Los invito a conocer el libro "Sistemas dinámicos en contexto: Modelación matemática, simulación, estimación y control con MATLAB", el cual estará disponible pronto en formato digital. El libro integra diversos temas de los sistemas dinámicos desde un punto de vista práctico utilizando ...
0
reply
A demo showcasing the Koopman Operator in conjunction with Model Predictive Control (MPC) to control a nonlinear system.
![Thumbnail](/matlabcentral/mlc-downloads/downloads/a4a89843-def1-4782-b6d1-80c0bc024e97/abb9ef70-07b3-4a9e-8a30-b8e29c0f9f2b/images/1739326049.png)
Workflow for generating a surrogate AI model from a multibody vehicle dynamics model.
![Thumbnail](/matlabcentral/mlc-downloads/downloads/c7a7d7d6-5eb2-4d37-b678-bb4eaf105a73/47d161e3-a0d4-4917-b588-fbe76913f209/images/1739290717.png)
Correlation from the paper "An Improved Correlation for Turbine Endwall Loss", Coull 2025
![Thumbnail](/matlabcentral/images/default_screenshot.jpg)
Inputs of Cop and high pressure values to find optimal high pressure that maxes out COP
![Thumbnail](/matlabcentral/images/default_screenshot.jpg)
In today's blog, Khushin Lakhara from the Student Programs team at MathWorks will explore the concept of sensitivity analysis and its significance in engineering design. Over to you, Khushin... For this blog, our attention will be on the student competition score function, especially competiti...
![Thumbnail](https://blogs.mathworks.com/student-lounge/files/2025/02/Social-Media-Collateral-scaled.jpg)
Simulink has been an essential tool for modeling and simulating dynamic systems in MATLAB. With the continuous advancements in AI, automation, and real-time simulation, I’m curious about what the future holds for Simulink. What improvements or new features do you think Simulink will have in the c...
0
reply
Description:The Fibonacci sequence is defined as follows:F(1)=1,F(2)=1,F(n)=F(n−1)+F(n−2) for n2Write a function that computes the sum of all even Fibonacci numbers that do not exceed a given number NNN.Example:For N=10, the Fibonacci sequence up to 10 is:1,1,2,3,5,8The even numbers are 2 an...
I got thoroughly nerd-sniped by this xkcd, leading me to wonder if you can use MATLAB to figure out the dice roll for any given (rational) probability. Well, obviously you can. The question is how. Answer: lots of permutation calculations and convolutions. In the original xkcd, the situation desc...
1
reply
LUTool provides an interactive animation of Gaussian elimination, the most important algorithm in technical computing.
![Thumbnail](https://blogs.mathworks.com/cleve/files/LUTool_ico.png)
MATLAB FEX(MATLAB File Exchange) should support Markdown syntax for writing. In recent years, many open-source community documentation platforms, such as GitHub, have generally supported Markdown. MATLAB is also gradually improving its support for Markdown syntax. However, when directly uploading...
0
reply
I maintain some MATLAB web apps that are used internally by other MathWorkers. For one of the apps, I want to allow users to save default settings for the app's behavior. I think I will provide this...
![Thumbnail](https://blogs.mathworks.com/videos/files/thumb-play-arrow-11.jpg)
The following blog was written by Marshall Alphonso Principal Engineer and Sara Galante, Senior Finance Application Engineer at MathWorks Watch the full webinar Custom Portfolio Optimization: Balancing Objectives, Constraints, and Efficiency here, download the slides or download the code here. Por...
![Thumbnail](http://blogs.mathworks.com/finance/files/2025/02/custom-1024x662.png)
Marmosets, small primates native to South America, are known to be highly social primates. Living in family-based groups of up to 15 individuals, they use a complex system of vocalizations for communication. These sounds range from high-pitched calls to trills and whistles that are referred to as “p...
![Thumbnail](https://blogs.mathworks.com/headlines/files/2025/02/GettyImages-154534932-1024x680.jpg)
I noticed recently that my data is no longer updating on thingspeak again. Is there a connectivity issues with thingspeak Data not updating on thingspeak There are no connectivity issues. Take a look at some public channels that have been continuously updating for a while: ...
1
reply
Find the value of x so that y=2 %%x = 1;y_correct = 2;assert(isequal(your_fcn_name(x),y_correct)) function y = your_fcn_name(x)x=y = x+1;end easy
This topic is for discussing highlights to the current R2025a Pre-release. R2025a Pre-release highlights One of the changes is the built-in support for Dark Mode and Themes. Personally I find Dark...
59
replies
Hi everyone The R2025a pre-release is now available to licensed users. I highly encourage you to download, give it a try and give us some feedback. The first thing I tried was switching to Dark mode. Here's the magic s = settings; s.matlab.appearance.MATLABTheme.PersonalValu...
6
replies
This curriculum module contains interactive examples that teach fundamental concepts of power electronics.
![Thumbnail](/matlabcentral/mlc-downloads/downloads/1d0fee91-998e-4a26-b5b3-61beac23c691/c0b9bf90-87b0-45f0-9c71-4e635c076cd7/images/1729801879.png)
Since its April 2023 launch, the MATLAB extension for Visual Studio Code has been extremely popular with over 329,000 installs via the Visual Studio Marketplace at the time of writing. Our development approach to this extension has been to release early and often, responding to feedback from the com...
![Thumbnail](https://blogs.mathworks.com/matlab/wp-content/blogs.dir/26/files/2024/12/VSCodeDebug_4.gif)
Try new Beta features to create, visualize, and run pipelines for machine learning workflows.
![Thumbnail](/matlabcentral/mlc-downloads/downloads/a7791dc8-a7fe-4eda-b23e-ab0e8a6a9338/88706cb1-25ac-4633-95c0-d1cb63d11291/images/1718917148.png)
Everyone's talking about Large Language Models (LLMs) and a huge number of you are using them too. Here are 4 ways to make use of them in the MathWorks ecosystem right now, no matter what your skill...
![Thumbnail](https://blogs.mathworks.com/matlab/wp-content/blogs.dir/26/files/2024/10/llm_2.png)
Back in April last year, I announced the MATLAB extension for Visual Studio Code on The MATLAB Blog and everyone at MathWorks was blown away by its popularity. In less than a year there have been...
![Thumbnail](https://blogs.mathworks.com/matlab/wp-content/blogs.dir/26/files/2024/03/VSCodeRun_4.gif)
This model demonstrates an ESS powered by solar which integrates renewable energy sources with an efficient battery storage mechanism
![Thumbnail](/matlabcentral/mlc-downloads/downloads/346a3ff7-1638-443c-bd5c-3c874b58a0be/cbb3f4e4-d6db-41d4-98b0-699ae8904643/images/thumbnail.png)
Representing the culmination of millions of person-hours of work conducted by thousands of engineers around the world, the latest release of MATLAB is always something of a celebration here at MathWorks. R2024b is no exception with thousands of new features, updates, improvements and bug fixes acros...
![Thumbnail](https://blogs.mathworks.com/matlab/wp-content/blogs.dir/26/files/2024/09/r2024bRelease_ver3_4.gif)
On 3 of my students' laptops that have Matlab installed, regardless of whether I use the publish function in the Command Window, or the publish tab at the top, I cannot get Matlab to generate a pdf. It gives me the same error on all 3 laptops: Error using mlreportgen.re.internal.xml.transfor...
5
answers
In the past two years, large language models have brought us significant changes, leading to the emergence of programming tools such as GitHub Copilot, Tabnine, Kite, CodeGPT, Replit, Cursor, and many others. Most of these tools support code writing by providing auto-completion, prompts, and sugg...
8
replies
Star Trek may have introduced the masses to the concept of a warp drive, but early references to this mode of travel date back to the 1930s in Jack Williamson’s science fiction novel, The Cometeers. Warp drives have been sprinkled throughout science fiction, but the “science” part has remained elusi...
![Thumbnail](https://blogs.mathworks.com/headlines/files/2024/09/GettyImages-1400105417-1024x576.jpg)
Vehicle templates with multibody suspension and electric powertrain sized for Formula Student competitions.
![Thumbnail](/matlabcentral/mlc-downloads/downloads/d27ece47-e708-4932-8c87-08a086485d4e/9fee1390-5ecf-4fbf-8277-0cb162901f31/images/1725635395.png)
Interactive module on signal processing theory and real-world applications.
![Thumbnail](/matlabcentral/mlc-downloads/downloads/77c23e0e-a84c-4b1f-815a-7880913488cf/7efe6c8f-09b7-468f-b594-7cb2b5f5322f/images/1724098053.png)
Given a continuousTimeStateSpaceModel comprising the matrices A, B, C, and D (albeit D = 0) and given a sample time Ts, how does discreteTimeStateSpaceModel = c2d(continuousTimeStateSpaceModel,Ts,method) comprising the matrices Ad, Bd, C, and D work for both 'zoh' and 'foh' as me...
2
answers
I am attempting to run MATLAB on my virtual machine. When I do so, however, MATLAB crashes with references to "vm3dgl64.dll" in the stack trace, such as the snippets below: [ 2] 0x00007ffd5899e3fe C:\Program Files\MATLAB\R2024a\bin\win64\libmwfl.dll+00058366 [ 5] 0x00007ffd3fd2c5bf C:\...
1
answer
Remove the row that contain the max value in the matrix?If you like the problem, please like it :) %%x = [1 2 3 4 5 6 ...
Hello, I have a plot consisting of "square-ish" TTL pulses and I want to be able to 1: Extract the data thats in the "Zoomed" XLim, and then 2: Find the x-location of each rising edge at a certain...
1
answer
The idea is to swap between second and second last rowEx = [1 2 3 4 5; 5 4 3 2 1; 1 2 3 4 5; 1 2 3 4 5; ...
There is anyway for contacting support of of matlabwebsite? have any support team?
2
answers
Explore Community Areas
Ask & Answer questions about MATLAB & Simulink!
Download or contribute user-submitted code!
Solve problem groups, learn MATLAB & earn badges!
Get the inside view on MATLAB and Simulink!
Connect with fellow users!
Use AI to generate initial draft MATLAB code, and answer questions!