Home - MATLAB Central

An open exchange for the MATLAB and Simulink user community


I am working on generating wind roses - I have been able to get a nice wind rose where I can color the bars by wind speed, but is there a way to also color or change the transparency based on the...

0

answer

I am a Solutions Architect with HPE working with a customer who wants to move from hundreds of individual tower workstations to a client-server based architecture. I am looking for a manufacturer-recommendation, including optimal processor cores, memory, and GPUs, to build out a solution. I appr...

0

answer

Hi I am using Matlab 2021a I am getting an error while generating S-function from my simulink model. I am using Microsoft Visual C++ 2019 (C) for C language compilation. I created healthy S-functions...

1

answer

I am trying to optimize integer variables with non-linear constraints using GA optimization. Specifically, the constraint is meant to make sure that each integer variable is unique (see example_2). I used to the following code to ensure that each integer is unique -size(unique(x),2) + size(x,2) w...

0

answer

I wonder if there is a way to import a custom library. I wouldnt want to re-create for all users the custom library. Or one should create a custom Toolbox to have/use a set of custom re-occuring functions and blocks?

1

answer

I am building the c-code of a Subsystem in Simulink with the embedded coder. The created header file includes the following code-snippet which represents the 6 inports and 2 outports of the subsystem. /* External inputs (root inport signals with default storage) */ typedef struct { real_T V_dc_ab...

0

reply

MATLAB makes it easy to integrate Python®-based AI models into your MATLAB and Simulink workflows. You can call PyTorch® and TensorFlow™ models - or any Python code - directly from MATLAB. For example, you can compare Python-based models to evaluate their accuracy and performance as part of the AI ...

Thumbnail

Embedded progress bar. This m file creates/updates a progress bar from an axes/uiaxes placed on a figure/uifigure Many configurations are p

Thumbnail

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

Thumbnail

Do you conduct research on 'Engineered Systems'?If you are in the business of building or conducting research on 'Engineered Systems' there's a good chance that you are a user of MathWorks' tools. At MathWorks we talk about 'Engineered Systems' all the time but I don&...

Thumbnail

My repository

Thumbnail

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

Good day I am looking someone to help me on the matlab and simulink I am missing some explanations.For easy communication you can contact 0026876637042 I am in need of help

0

reply

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

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

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