Home - MATLAB Central

An open exchange for the MATLAB and Simulink user community


I am looking for a way to make parenthetical pairs more clear, as the underscore is not easy to see. I saw a solution online that shows some options to highlight instead of underscore, but it seems...

Tags:

0

answer

I want to solve f(x) = 0 using x0 as a guess. I can use fsolve. Let's assume that given the guess the exit flag is not 1 (equation not solved). What would be the most straighforward way to update my initial guess?

1

answer

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

I am using the HDL Coder's IP Core generation feature to implement an algorithm I made on my Zedboard. Since my algorithm operates on frames of data I chose to use the AXI4-Stream interface for the input and output data ('data' and 'PHYFrame_out' respectively). Matlab generat...

0

answer

I can't run wavedec2 as I keep getting: my license is a student license for matlab 2024b my variable check out. Unrecognized function or variable 'wavedec2'. Error in scrDescribeBasalGanglia (line 193) [c,s] = wavedec2(roiBGSliceEqNoCSF, numLevelsWavelet, 'db1'); K wh...

Tags:

1

answer

I went under the mask of the ECMS block trying to understand how is the optimization done. I found that each timestep many of the variables have 202 entries which I noticed comes from the breakpoint calculation done for the motor's torque. The possible torque vector includes 1) Motor provide...

Tags:

0

answer

DTFTLab is a MATLAB toolbox designed for approximate Discrete-Time Fourier Transform (DTFT) processing in the frequency domain.

Thumbnail

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

In Electric Vehicles (EVs), the driving range is the estimated distance a vehicle can travel on a fully charged battery. The range (R) can be calculated using the formula:where: ​ is the total battery capacity (in kilowatt-hours, kWh) is the efficiency factor of the EV drivetrain (as a decimal, ...

In a Battery Management System (BMS), estimating the backup time of a battery-powered inverter helps determine how long it can supply power during an outage. The backup time (T) can be calculated using the formula:where: ​ is the battery capacity (in ampere-hours, Ah)​ is the battery voltage (in...

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

For Valentine's day this year I tried to do something a little more than just the usual 'Here's some MATLAB code that draws a picture of a heart' and focus on how to share MATLAB code. TL;DR, here's...

0

reply

In a Battery Management System (BMS), the charge rate (​) of a battery can be calculated using the formula:​​where:​ is the charge added to the battery (in ampere-hours, Ah)t is the time taken to...

In a Battery Management System (BMS), the State of Health (SoH) of a battery is an indicator of its overall condition. It is calculated by comparing the current capacity of the battery with its...

Modelling and simulation of a quadruped robot in Simscape with tutorials

Thumbnail

b-d-Lawson is a method for the interpolation constrained rational minimax approximation.

Thumbnail

On my computers, this bit of code produces an error whose cause I have pinpointed, load tstcase ycp=lsqlin(I, y, Aineq, bineq); Error using parseOptions Too many output arguments. Error in lsqlin (line 170) [options, optimgetFlag] = parseOptions(options, 'lsqlin', defaultopt); ^^^^^^^^^^^...

3

replies

This is the file of dynamic model of 2DoF robotic link

Thumbnail

Some functions for cyclic manipulation of data, together with some acoustic data.

Thumbnail

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

Thumbnail

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

Categories:
Thumbnail

LUTool provides an interactive animation of Gaussian elimination, the most important algorithm in technical computing.

Thumbnail

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

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