Home - MATLAB Central

Un intercambio abierto para la comunidad de usuarios de MATLAB y Simulink


Hello, I have recently updated Matlab version to R2024b and now when performing an sbuild of the model I get the following warning regarding a few S-functions: Warning: In the build information, the source files ( ....) have extensions that are not registered with the toolchain (MinGW64 | gmake ...

0

answer

As described in the title, after upgrading to R2024b, I found that each ePWM block will automatically generate a sentence like this: uint16_T tbprdValue?Outputs = EPwm?Regs.TBPRD; where ? represents the ePWM number. However, I found that this variable is not used in any file of the project. Thou...

0

answer

Easy to use Matlab fprintf(...) for general purpose logging to command window.

Thumbnail

So I was looking at the model again "Lithium Battery Cell - One RC-Branch Equivalent Circuit" see And the table for the voltage source only goes to 4.2 V, but running the example shows ...

0

answer

I want to impliment Park and Clark transform in matlab Simulink can anyone help me do it plz

0

answer

Hello, I'm currently scripting some stuff with subsystem replacements and the such. For the check of the input data / arguments I use the bdIsLoaded function. If I use the function on a simple subsystem, i get an error: gcb ans = 'untitled/Subsystem' bdIsLoaded(gcb)...

0

answer

My repository

Thumbnail

i have to paste the url generated in the output ide everytime to get the data on my thingspeak channel: e,g.: my code is : #include "DHT.h" #define DHTPIN 15 // Pin where DHT senso...

0

reply

A full rank update version of the secant method (t-secant) is given in single variable case.

Thumbnail

We recently hosted a technical webinar focused on climate transition risk, specifically assessing climate impacts on credit risk. Elre Oldewage and Sara Galante, both application engineers at MathWorks presented the work our team has been doing in this space and how we can assist our customers who a...

Categories:
Thumbnail

A 3D arrow in matlab

Thumbnail

Guest Writer: Eric Ludlam Joining us again is Eric Ludlam, development manager of the MATLAB charting team. Discover more about Eric on our contributors page. MATLAB Graphics supports 3D shapes and lighting properties, but the light objects don't cast shadows. Let's explore a way to...

Categories:
Thumbnail

Live Script that explores a two-step method to fit data to a sum of sinusoidal signals.

Thumbnail

Recently my iMac became sluggish. I checked Activity Monitor and found it was spending most of its time in mds_stores. I turned of Apple Intelligence under System Settings - Apple Intelligence &...

Tags:

1

reply

The GCD approach to identify rough numbers is a terribly useful one, well worth remembering. But at some point, I expect someone to notice that all work done with these massively large symbolic...

0

reply

Yes, some readers might now argue that I used roughness in a crazy way in my last post, in my approach to finding a large twin prime pair. That is, I deliberately constructed a family of integers...

0

reply

How can we use roughness in an effective context to identify large primes? I can quickly think of quite a few examples where we might do so. Again, remember I will be looking for primes with not just...

0

reply

Econometric modeling is essential for analyzing economic data, making forecasts, and informing policy decisions, however, traditional approaches often require extensive coding expertise, making them inaccessible to many economists and analysts. With the Econometric Modeler app in MATLAB, you can bui...

Categories:
Thumbnail

Generative AI has become one of the most influential trends of recent years, powering tools like ChatGPT and Copilot that have transformed how we live and work. Beyond these domains, generative AI is also reshaping industries, and robotics is no exception. At MathWorks, we are excited to explore how...

Categories:
Thumbnail

In the world of Analog/Mixed-Signal Integrated Circuit (IC) design, transfer functions have long been the go-to method for representing and analyzing linear time-invariant (LTI) circuits. However, this traditional approach comes with its own set of limitations: Single-Input-Single-Output (SISO) Lim...

Categories:
Thumbnail

In this problem, you are tasked with rotating a given matrix by 90 degrees in a counter-clockwise direction. The input will be a square matrix (i.e., the number of rows is equal to the number of...

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

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