MATLAB 및 Simulink 사용자 커뮤니티를 위한 열린 지식 공유의 장입니다
Dear MATLAB users I have a problem with random numbers. When I call the rand and randn function many times with a very large argument, the random number sequence changes after a certain index as...
0
answer
I want to ask about plotting the synchronization between two systems b using matlab here is the code in maple with(plots); sys := diff(x(t), t) = a*(-x(t) + y(t)), diff(y(t), t) = b*x(t) -...
0
answer
Processes L1A data of SAR altimetry missions including CryoSat-2, Sentinel-3A/B and Sentinel-6MF.

I’m trying to make multiple 3D histogram plots side-by-side. I think I need to use the bar3 function, but I don’t know what combination of code to use. Am I trying to make something that doesn’t exist in MATLAB?
1
answer
Hi everyone, I'm currently trying to make a model or just simply use existing model to analyse the voltage drop or votlage rise at each point of bus systems (or most people call it nodes) with...
0
answer
This MATLAB script trains a CNN for MNIST digit classification, achieving 90% accuracy.

Interactively select one or more points in a scatter plot and identify row numbers in arrays or tables

Code to reproduce the figures of paper "Robust Tobit Regression for Censored Observations Using Extended Box-Cox Transformations"

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

This week I received a series of interesting questions on the basics of putting together a simulation of a control loop involving a Simscape continuous plant and a discrete controller. The questions are summarized in this image:Here are my answers to those questions.Discrete ControllerI recommend im...

Do you boast about the energy savings you racking up by using dark mode while stashing your energy bill savings away for an exotic vacation🌴🥥? Well, hold onto your sun hats and flipflops! A recent...
3
replies
tiledlayout(4,1); % Plot "L" (y = 1/(x+1), for x -1) x = linspace(-0.9, 2, 100); % Avoid x = -1 (undefined) y =1 ./ (x+1) ; nexttile; plot(x, y, 'r', 'LineWidth', 2); xlim([-10,10]) % Plot "O" (x^2...
1
reply
I've been trying this problem a lot of time and i don't understand why my solution doesnt't work. In 4 tests i get the error Assertion failed but when i run the code myself i get the diag and antidiag correctly. function [diag_elements, antidg_elements] = your_fcn_name(x) [m, n] = siz...
4
replies
Today's guest blogger is Francesco Bellucci, a PhD student in Mechanical Engineering at Department of Industrial Engineering of the University of Bologna. Francesco has a passion for helping young minds and has been actively involved in mentoring a team of young students, aged 13-14, from a se...

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...
MATLAB has two different ways to compute singular values. The easiest is to compute the singular values without the singular vectors. Use svd with one output argument, s1. s1 = svd(A) The...

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

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
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...
Almost immediately after the DeepSeek-R1 AI models were made available to the world, people started asking how you can use them in MATLAB. Late last week, Vasileios Papanastasiou, a software test engineer at MathWorks, posted how to do this on LinkedIn and this morning I tried out his instructions f...

Try new Beta features to create, visualize, and run pipelines for machine learning workflows.

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...
65
replies
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
This curriculum module contains interactive examples that teach fundamental concepts of power electronics.

In this blog post we are going to show you how to use the newest MATLAB functions to: Import models from TensorFlow and PyTorch into MATLAB Export models from MATLAB to TensorFlow and PyTorch This...

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

During an online meeting with my colleagues in Boston yesterday, some of them were rather startled when their offices started violently shaking for a brief time! We quickly hopped onto BlueSky (Feel free to follow me there) where we saw thousands of messages referring to what everyone suspected was ...

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

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

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
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
Vehicle templates with multibody suspension and electric powertrain sized for Formula Student competitions.

Starfish Optimization Algorithm (SFOA) is a novel bio-inspired metaheuristic for solving optimization problems.

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
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 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...
8
answers
I have matrices A (m by v) and B (v by n). I also have a logical matrix L (m by n). I am interested in, as efficiently as possible, calculating only the values in A * B that correspond to logical...
2
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 want to fit the interpolation values of a spline, but I can not provide a good guess for the upper bound of the interpolation domain. That is, x(end) is so to speek an unknown too. The value of the...
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!