Un intercambio abierto para la comunidad de usuarios de MATLAB y Simulink
Online optimization of energy storage actions in a microgrid given system constraints and pricing

An algorithm for manifold learning and dimension reduction.

MATLAB-Simulink model of IEEE 33 Bus System (Baran and Wu, 1989)

Learn how to deploy an algorithm to an FPGA using MATLAB and Simulink.

I'm trying to write an equation with e, but I assume it would just take it as an undeclared variable.
3
answers
Rad/s is nice for mechanical people, but I'm an EE, and I much prefer Hertz. It should be something simple, but I can't find it in the help.
4
answers
Simscape electrolyzer converting water and electricity (wind/solar renewable sources) into H2 gas. Alkaline technology included.

Virtual labs and mechanisms for studying controls.

Example files for MATLAB and Simulink Robotics Arena walking robot videos.
In this model, a Microgrid test system based on the 14-busbar IEEE distribution system is proposed.

A minimum length 2D planar bell nozzle is designed using MOC

I have a histogram that I want to plot just as a simple line plot. I have tried: h = histogram(speed,'Normalization','probability') plot(h) But then I got an error message: Not enough input arguments. Does anyone know how I can do it? Many thanks!
4
answers
Hi, Community I wanna ask about how to do a Gaussian Filter in just 1D data.... So i have a data vector based on time series like this : And i want to filter the data by using Gaussian Filter. So, Anyone, How to do that? Thank you so much....
1
answer
The modal parameters of a line-like structure are automatically identified using an SSI-COV algorithm applied to ambient vibration data

I am a python programmer and new to Matlab. Therefore, facing some basic issues. Please help me out with this. I am pasting my code here. Error Message: Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in spectrum_uncompressed (line 30) X_per_bartlett...
2
answers
A Matlab/Simulink Library for the Interval Type-2 Fuzzy Logic Systems (IT2-FLS)

This submission contains a set of models to show the implementation of electric all-terrain vehicles powered by BLDC motor.

Ka.Race.Ing-Team at Karlsruhe Institute of Technology volunteered to share in depth and hands-on their approach around vehicle controls and torque vectoring in particular. They are winners of the Simulink Student Challenge 2016. And to top it all off, Julian our guest blogger today, added two of the...

Design of boost converter based on maximum power point resistance for photovoltaic applications.

The simulator, VANET Toolbox, currently support V2V communication with lane changing, car following activities. V2I is under development.

this code returns a fully trained MLP for regression using back propagation of the gradient. I dedicate this work to my son :"Lokmane ".

A fully connected customizable neural network with an example.

Simulink Project showing a small fixed-wing drone, its autopilot, and the operator interface

Determine parameters of a noisy sine function

Solved DSP exercises in MatLab from an old but gold DSP lab book.

A permutation test (aka randomization test) for MATLAB, testing for a difference in means between two samples.

© kreutzweise.de Great ideas don’t always stand the test of time. It may be due to some drawbacks that knock out the great advantage, or it simply is too expensive or difficult to implement. The following article will share a contradicting example. Enjoy this engineering success story of originalit...

Matlab code for load flow analysis by newton-raphson, gauss-siedel and fast decoupled methods

I need to convert my matrix [648x2400 double] into integers value to use a mRMR function, but I do not know how to do that. I have tried to convert by uint8(matrix) or int8(matrix) but it does not give integers... And I always have this note: "Undefined function 'mrmr_mid_d' for input ...
4
answers
A toolbox for the computation of the Fast Marching algorithm in 2D and 3D.

abfload imports data in the Axon abf format (three different recording modes).

Hi I've a question about matlab simulink when I run a code, there are message "MATLAB cannot run this file because c:\~~~ shadows it. delete shadowing file and try again" what's the problem? And why this happen??
4
answers
How can I download 2011b version of MATLAB?
5
answers
This keeps coming up as an error, what am I doing wrong? prompt= 'State your name, Your Grace '; name=input(prompt);
2
answers
I'm new to MATLAB and am still getting used to the workspace. When I open a new file or script, it always comes out in a new window. How can I get it to be opened in the same window as the commands? Thanks!
2
answers
Hello , I want to concatenate string and number in for loop requestID = Req_Check; for k = 1 : 10 requestID = requestID +1; end I am expecting requestID after for loop like Req_Check_1, Req_Check_2 ...Req_Check_10 How can I do this?
3
answers
y25=[1.875000000000000,3.046875000026040] How can I add 0 (zero) to the beginning of this array? I want to get the array y25=[0,1.875000000000000,3.046875000026040] Thank You.
1
answer
HVDC system with three level neutral-point clamped VSC

Remove the small words from a list of words. Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words that are one or two letters long and make sure that exactly one space separates all the words. Strings will be made up only of ...
After entering my Activation Key the installer gives me the following error: Error 510: No licenses were found for the activation key entered kA0i00000007qRZCAY 000025332
1
answer
I notice that MATLAB takes a long time to start. Other times it fires up right away. Any ideas on how to fix this?
3
answers
I want convert double number like 0.222833 to string but when i using num2str the number convert to '0.22283' and sixth digit of number is removed ,can u help me to convert it to string?
1
answer
I installed MATLAB and now, I buy new toolbox. To install new one, should I reinstall MATLAB? or can I install new toolbox only?
3
answers
Show animation of the double pendulum's (mostly) chaotic behavior.

Sum of series I What is the sum of the following sequence: Σ(2k-1) for k=1...nfor different n? %%n = 1;s_correct = 1;assert(isequal(sumOfSeriesI(n),s_correct))%%n = 2;s_correct = 4;assert(isequal(sumOfSeriesI(n),s_correct))%%n = 10;s_correct = 100;assert(isequal(sumOfSeriesI(n),s_correct))%%n = 15;s...
Coding a cantilever beam with lumped spring mass and applying a point load on the free end. I want to get the response for the free vibration and forced vibration case. Please help
0
answer
Hi Where can I find instructions for online installation, hoping the installation nightmare ends ? Thanks in advance. Manolis
0
answer
hi, i need to plot my corrdinates vs time. and my time to run with a loop function repeatedly. is there any other method for me to try without loop or any command options?
0
answer
i have to model a PV array connected to grid is working with Frequcny regulation and voltage regulation without ESS. i have read some paper and got to know about Deloading and VSG. but not getting how to implement it?
0
answer
I am getting error for configurable subsystem in R2024b error : :"Configurable subsystem must be converted to Variant subsystem" Can I know the why this issue is occuring?
0
answer
Fire resistance section with Fibers NMyMz

Check out the result of "emoji matrix" multiplication below. vector multiply vector: a = ["😁","😁","😁"] b = ["😂"; "😂" "😂"] c = a*b matrix multiply matrix: matrix1 = [ "😀", "😃"; "😄", "😁"] m...
0
reply
Monte Carlo Simulations for 3D Path Planning of quadrotors in wind and urban enviornment

In computer vision, pretrained models are often used and adapted to the task at hand by performing transfer learning. Transfer learning involves modifying and retraining a pretrained network with your data. Most pretrained models are trained on large, colorful image datasets like ImageNet. But how ...

You recently bought an electric kettle for your kitchen, and you want to estimate how much it costs to run every month. The kettle operates at 230V and consumes 2000W (or 2kW) when in use. You...
A voltage divider is a simple circuit used to obtain a reduced voltage from a higher voltage source using two resistors in series. The output voltage (Vout) is given by the formula:Where:Vout is...
In an electrical circuit, the current (III) flowing through an LED is determined using Ohm’s Law:Where:I is the current in amperes (A)V is the supply voltage in volts (V)Vf is the forward voltage...
The energy (EEE) stored in an inductor is given by the formula:Where:E is the energy in joules (J)L is the inductance in henrys (H)I is the current in amperes (A)Write a function that takes...
I am looking for a Simulink tutor to help me with Reinforcement Learning Agent integration. If you work for MathWorks, I am willing to pay $30/hr. I am working on a passion project, ready to start ASAP. DM me if you're interested. TUTOR NEEDED!! OFFER $20/hr!!
0
reply
Bitte um Hilfe beim Kauf Wie kann ich eine MATLAB Student Suite Lizenz kaufen, wenn ich keine Kreditkarte habe? Approximate translation: How can I purchase a MATLAB Student Suite license if I don't have a credit card? Request help with purchase
1
reply
So, in my attempt to add a settings feature to my web app, I have managed to add a settings tab with one uicontrol. When it's value is changed, it saves its value to a MAT file. Next, when the app...

Since May 2023, MathWorks officially introduced the new Community API(MATLAB Central Interface for MATLAB), which supports both MATLAB and Node.js languages, allowing users to programmatically access data from MATLAB Answers, File Exchange, Blogs, Cody, Highlights, and Contests. I’m curious about...
0
reply
In a Battery Management System (BMS), the lifetime of a battery depends on various factors, including the Depth of Discharge (DoD), load profile, and the battery's cycle life. The cycle life of a battery is the number of complete charge-discharge cycles the battery can undergo before its cap...
Mike is spreading some MATLAB Valentines joy over on the MATLAB Blog. Here is MathWorker Jonathan Gale's ode to the Mapping Toolbox and the Bonne spherical projection. What would your caption for...

I've been sharing mathematical equations with some sort of connection to Valentine's day for a long time now. Indeed, the first time I did it was 17 years ago on my old WalkingRandomly blog and I've repeated variations of this several time since. It's a very obvious social media post...

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...

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...
64
replies
Try new Beta features to create, visualize, and run pipelines for machine learning workflows.

This curriculum module contains interactive examples that teach fundamental concepts of power electronics.

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...

l cann't log in my account of my school in the matlab. when l clicked the log in , there skiped the erros mw-login::No endpoint specified. in the past, the matlab was normally.
1
answer
This model demonstrates an ESS powered by solar which integrates renewable energy sources with an efficient battery storage mechanism

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...

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...

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
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...

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...

Vehicle templates with multibody suspension and electric powertrain sized for Formula Student competitions.

You've probably heard about the DeepSeek AI models by now. Did you know you can run them on your own machine (assuming its powerful enough) and interact with them on MATLAB? In my latest blog post, I...
2
replies
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
Hello, I have been encountering several times a day for a few weeks an error when updating my data stored on Thingspeak (computerized hive parameters). The return code of my Arduinos is 211! But I...
7
answers
Delete rows with specific properites as following:Find rows that have a negative value in any element of the row and delete it.Check if the last element of the row is equal of bigger than 24 and...
I'm doing optimization using fmincon. I used ObjectiveLimit to terminate the optimization when the size of the objective function is less than 0.2, As I was writing the code, it seems that if the nonlinear constraints are satisfied, the termination condition is also satisfied. However, when ...
1
answer
I have been trying to calculate the bubble velocity using the MATLAB code attached below. However, the velocity computed from the video appears to be significantly lower than expected. My goal is to compare the results with the analytical solution, but the discrepancy is quite large. Could you pl...
1
answer
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!