Home - MATLAB Central

An open exchange for the MATLAB and Simulink user community


How do you export your syms equation to a new/different .m file to be able to use the equation with parameters.

1

answer

I would like to create a SIMULINK model that basically takes an input, lets say 2.5, and check if this value is between 6.5 to 8.5. Once checked, if below this range, then it must add 1 to the...

0

answer

Hi, I am solving coupled reaction diffusion PDEs of the form: I am using the 'pdepe' function to solve them. I have become aware that there is an 'events' functionality embedded into the 'pdepe' solver that allows the user to trigger an event when a certain event occurs. ...

0

answer

Hi all, I'm working on quite some time to improve the code which I've written for better visualization of A0 mode. In my code everything looks good even I'm able to track the properties of the wave...

0

answer

I'm working on the MATLAB Simulink Power Systems Simulation Onramp, specifically Task 5. I changed the Wye-Connected Load block component structure to Series RL and set the default value to 12∠0° (A) for inductive reactive power, as required. I also used the filter from the previous task to ...

1

answer

Matlab code for linear interpolation without using in-built interp1 function.

Thumbnail

Simulink Flightgear 6DoF simulation with full state feedback controller.

Thumbnail

This is a simple TCP-based web server in MATLAB using Java sockets. It allows executing MATLAB functions via HTTP requests.

Thumbnail

With 2025 well underway, we are taking a moment to reflect on the milestones of MathWorks startup program in 2024. Here's a look by the numbers: In 2024, we worked with over 900 new startups,...

Thumbnail

As we celebrate the 30th anniversary of Dynare, we at MathWorks would like to take a moment to reflect on its influence on the global economics community. Developed by Michel Juillard, Dynare has been a cornerstone in computational economics, enabling researchers and policymakers worldwide to model ...

Categories:
Thumbnail

joukowski airfoil from 3rd year of aerodynamics Engineering

Thumbnail

This illustrates how elegant the analysis of a two-port network using MATLAB is.

Thumbnail

On 27th February María Elena Gavilán Alfonso and I will be giving an online seminar that has been a while in the making. We'll be covering MATLAB with Jupyter, Visual Studio Code, Python, Git and...

0

reply

Check out the result of "emoji matrix" multiplication below. vector multiply vector: a = ["😁","😁","😁"] b = ["😂"; "😂" "😂"] c = a*b matrix multiply matrix: matrix1 = [ "😀", "😃"; "😄", "😁"] m...

3

replies

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

Categories:
Thumbnail

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

Tags:

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

Tags:

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

Tags:

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

Thumbnail

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

Categories:
Thumbnail

Be Part of MATLAB Central

Community Video
MATLAB Answers

Ask & Answer questions about MATLAB & Simulink!

File Exchange

Download or contribute user-submitted code!

Cody

Solve problem groups, learn MATLAB & earn badges!

Blogs

Get the inside view on MATLAB and Simulink!

Discussions

Connect with fellow users!

AI Chat Playground

Use AI to generate initial draft MATLAB code, and answer questions!

Go to top of page