Un intercambio abierto para la comunidad de usuarios de MATLAB y Simulink
I'm trying to use Matlab in a public (though not yet broadly shared) GitHub repository's "Actions" workflow. Specifically, I'm creating a Matlab-based Quarto "book" using the mkernel project, that I would like to render & publish via an action. It seems, howev...
0
answer
% Test adamupdate function clc; clear; % Define test parameters learnable = dlarray(randn(5, 1)); % Example learnable parameter gradient = dlarray(randn(5, 1)); % Example gradient state = []; % Initial state (empty) optimizer = trainingOptions('adam', 'InitialLearnRate', 0.01); %...
0
answer
Want to use sigStrength properly with input gain (and Not Directivity) pattern. clear all, clc, close all load("antenna_data.mat"); freq = 3e9; angles = test_antenna_pattern(:,1); gains = test_antenna_pattern(:,2); %[~, OT, ~] = patternFromSlices(gains,angles); ogg = interp1(angles,gai...
0
answer
i managed to instal matlab but when i try to run it i get this : MATLAB is selecting SOFTWARE rendering. Authorization required, but no authorization protocol specified Command `service` threw an exception Error loading /home/athanasios/.MathWorks/ServiceHost/-mw_shared_installs/v2024.13.0.2/ bi...
1
answer
I want to write the prime of this hankel function expansion, where , zeta, B0, ka are given, nu is complex which is also given in the question, How can I write the derivatiove of this Hankel function...
0
answer
Write MATLAB finite element mesh to popular mesh file formats

Single-Phase Semi-Controlled Converter RL Load Efficient AC to DC conversion using thyristors and diodes, enabling partial voltage control.

These codes provide simulation and experiments of SDRE + SMC of a rotary inverted pendulum.

As hospitals integrate more advanced patient monitoring systems, the ability to process, analyze, and act on real-time medical data has become critical. Traditional monitoring systems generate large amounts of sensor data, but manually interpreting this data in real time is challenging for clinicia...

Hi! I'm Joseff and along with being a student in chemical engineering, one of my great passions is language-learning. I learnt something really cool recently about Catalan (a romance language closely related to Valencian that's spoken in Andorra, Catalonia, and parts of Spain) — and that ...
1
reply
📢 We want to hear from you! We're a team of graduate student researchers at the University of Michigan studying MATLAB Drive and other cloud-based systems for sharing coding files. Your feedback will help improve these tools. Take our quick survey here: Tak...
0
reply
Last year I discussed the collaboration between the open source optimization library, HiGHS and MathWorks. This included some exciting new integration of the HiGHS library with MATLAB which, among other things, is speeding up MATLAB's linear and mixed-integer programming solvers linprog and intl...

Today, we’re sharing some predictions on what the startup ecosystem might look like in 2025. In no particular order, here are some of the key themes we anticipate: Corporate Engagement in Startups – We’ve seen a rise in large corporations interested in startups, not just through monetary investment...

6G will unlock new use cases for wireless cellular networks, such as sensing and building digital twins. To support these innovations, integrating advanced link-level simulations with ray tracing delivers high simulation accuracy in performance evaluations. This combination enables precise modelling...

Imagine you are developing a new toolbox for MATLAB. You have a folder full of a few .m files defining a bunch of functions and you are thinking 'This would be useful for others, I'm going to make it...
2
replies
Add 2 to any number. %%x = 1;y_correct = 3;assert(isequal(add2(x),y_correct)) function y = add2(x) y = 2 + x;end easy
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. In the previous blog article, we...

I am glad to inform and share with you all my new text book titled "Inverters and AC Drives Control, Modeling, and Simulation Using Simulink", Springer, 2024. This text book has nine chapters and three appendices. A separate "Instructor Manual" is rpovided with solutions to se...
0
reply
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...
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...
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...

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

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

Deep neural networks like convolutional neural networks (CNNs) and long-short term memory (LSTM) networks can be applied for image- and sequence-based deep learning tasks. Graph neural networks (GNNs) extend deep learning to graphs, that is structures that encode entities (nodes) and their relation...

This model demonstrates an ESS powered by solar which integrates renewable energy sources with an efficient battery storage mechanism

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

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...
72
replies
Customize scenes in Unreal® Editor for co-simulation with Simulink®.

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...
12
replies
Hello everyone, I’m planning a new PC build and am currently undecided about which CPU to choose. I understand that AMD CPUs have faced some slower performance in MATLAB due to Intel MKL but I...
5
answers
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...
1
reply
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
If I go to a paint store, I can get foldout color charts/swatches for every brand of paint. I can make a selection and it will tell me the exact proportions of each of base color to add to a can of...
10
replies
This project describes how to model a Building Energy Management System with Simscape, including heat transfer, and HVAC control.

Hello, after logging into my Matlab Online account I get an error like: Oops! This page is currently unavailable. We're sorry, but you can't access this page at the moment. This might be due to: The requested resource is unavailable An incorrect URL was entered Insufficient privileges Co...
1
answer
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 ...
I have recently installed MATLAB 2024b in an Ubuntu 24.04.2 system. When starting MATLAB I obtain the following errors: com.jogamp.opengl.GLException: X11GLXDrawableFactory - Could not initialize shared resources for X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x0, owner false, ...
1
answer
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...
Hi there, I am currently working on a Matlab code for my homework (the attached PDF file). As a beginner with Matlab, I initially get help from ChatGPT, but unfortunately, it hasn't been very...
1
answer
Ezfit (actually I am using the updated version from Walter Roberson) fails to accurately determine all 4 parameters in a single curve fit (see Method A). A workaround, setting 1 parameter initially and then fitting the remaining 3 in a second step (Method B), looks instead successful. Is there a...
3
answers
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!