Home - MATLAB Central

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


Online optimization of energy storage actions in a microgrid given system constraints and pricing

Thumbnail

An algorithm for manifold learning and dimension reduction.

Thumbnail

MATLAB-Simulink model of IEEE 33 Bus System (Baran and Wu, 1989)

Thumbnail

Learn how to deploy an algorithm to an FPGA using MATLAB and Simulink.

Thumbnail

I'm trying to write an equation with e, but I assume it would just take it as an undeclared variable.

Tags:

3

answers

Rad/s is nice for mechanical people, but I'm an EE, and I much prefer Hertz. It should be something simple, but I can't find it in the help.

4

answers

Simscape electrolyzer converting water and electricity (wind/solar renewable sources) into H2 gas. Alkaline technology included.

Thumbnail

Virtual labs and mechanisms for studying controls.

Thumbnail

Example files for MATLAB and Simulink Robotics Arena walking robot videos.

Thumbnail

Cynthia Brewer's ColorBrewer palettes, ported to MATLAB, with nice interpolation.

Thumbnail

In this model, a Microgrid test system based on the 14-busbar IEEE distribution system is proposed.

Thumbnail

A minimum length 2D planar bell nozzle is designed using MOC

Thumbnail

I have a histogram that I want to plot just as a simple line plot. I have tried: h = histogram(speed,'Normalization','probability') plot(h) But then I got an error message: Not enough input arguments. Does anyone know how I can do it? Many thanks!

4

answers

Hi, Community I wanna ask about how to do a Gaussian Filter in just 1D data.... So i have a data vector based on time series like this : And i want to filter the data by using Gaussian Filter. So, Anyone, How to do that? Thank you so much....

1

answer

The modal parameters of a line-like structure are automatically identified using an SSI-COV algorithm applied to ambient vibration data

Thumbnail

In this post, I will discuss robot modeling and simulation with Simulink®, Simscape™, and Simscape Multibody™. To put things in context, I will walk you through a walking robot example (get it?).

Thumbnail

I am a python programmer and new to Matlab. Therefore, facing some basic issues. Please help me out with this. I am pasting my code here. Error Message: Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in spectrum_uncompressed (line 30) X_per_bartlett...

2

answers

A Matlab/Simulink Library for the Interval Type-2 Fuzzy Logic Systems (IT2-FLS)

Thumbnail

This submission contains a set of models to show the implementation of electric all-terrain vehicles powered by BLDC motor.

Thumbnail

Ka.Race.Ing-Team at Karlsruhe Institute of Technology volunteered to share in depth and hands-on their approach around vehicle controls and torque vectoring in particular. They are winners of the Simulink Student Challenge 2016. And to top it all off, Julian our guest blogger today, added two of the...

Thumbnail

Design of boost converter based on maximum power point resistance for photovoltaic applications.

Thumbnail

The simulator, VANET Toolbox, currently support V2V communication with lane changing, car following activities. V2I is under development.

Thumbnail

this code returns a fully trained MLP for regression using back propagation of the gradient. I dedicate this work to my son :"Lokmane ".

Thumbnail

A fully connected customizable neural network with an example.

Thumbnail

Simulink Project showing a small fixed-wing drone, its autopilot, and the operator interface

Thumbnail

Determine parameters of a noisy sine function

Thumbnail

Solved DSP exercises in MatLab from an old but gold DSP lab book.

Thumbnail

A permutation test (aka randomization test) for MATLAB, testing for a difference in means between two samples.

Thumbnail

© kreutzweise.de Great ideas don’t always stand the test of time. It may be due to some drawbacks that knock out the great advantage, or it simply is too expensive or difficult to implement. The following article will share a contradicting example. Enjoy this engineering success story of originalit...

Thumbnail

Matlab code for load flow analysis by newton-raphson, gauss-siedel and fast decoupled methods

Thumbnail

I need to convert my matrix [648x2400 double] into integers value to use a mRMR function, but I do not know how to do that. I have tried to convert by uint8(matrix) or int8(matrix) but it does not give integers... And I always have this note: "Undefined function 'mrmr_mid_d' for input ...

4

answers

A toolbox for the computation of the Fast Marching algorithm in 2D and 3D.

Thumbnail

abfload imports data in the Axon abf format (three different recording modes).

Thumbnail

Hi I've a question about matlab simulink when I run a code, there are message "MATLAB cannot run this file because c:\~~~ shadows it. delete shadowing file and try again" what's the problem? And why this happen??

4

answers

How can I download 2011b version of MATLAB?

Tags:

5

answers

This keeps coming up as an error, what am I doing wrong? prompt= 'State your name, Your Grace '; name=input(prompt);

2

answers

I'm new to MATLAB and am still getting used to the workspace. When I open a new file or script, it always comes out in a new window. How can I get it to be opened in the same window as the commands? Thanks!

2

answers

Hello , I want to concatenate string and number in for loop requestID = Req_Check; for k = 1 : 10 requestID = requestID +1; end I am expecting requestID after for loop like Req_Check_1, Req_Check_2 ...Req_Check_10 How can I do this?

3

answers

Given a matrix, swap the 2nd & 3rd columns If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4];then the result is ans = 1 3 2 4 1 3 2 4 1 3 2 4 1 3 2 4Perform a simple swap of the two middle columns. %%x = [1 2 3 4;1 2 3 4;1 2 3 4;1...

y25=[1.875000000000000,3.046875000026040] How can I add 0 (zero) to the beginning of this array? I want to get the array y25=[0,1.875000000000000,3.046875000026040] Thank You.

1

answer

HVDC system with three level neutral-point clamped VSC

Thumbnail

Remove the small words from a list of words. Your job is to tidy up a list of words that appear in a string. The words are separated by one or more spaces. Remove all words that are one or two letters long and make sure that exactly one space separates all the words. Strings will be made up only of ...

Tags:

After entering my Activation Key the installer gives me the following error: Error 510: No licenses were found for the activation key entered kA0i00000007qRZCAY 000025332

1

answer

I notice that MATLAB takes a long time to start. Other times it fires up right away. Any ideas on how to fix this?

Tags:

3

answers

I want convert double number like 0.222833 to string but when i using num2str the number convert to '0.22283' and sixth digit of number is removed ,can u help me to convert it to string?

1

answer

Draw 'B' Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4)Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 1 1 1 1 0 1 0 0 0 1 1 1 1 1 0] x=7 ans= [1 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 1 1 1 1 0 1 0 0 0 0 0 1 1 0 0 0 0 0 1 1 1 1 1 1 1 0] ...

I installed MATLAB and now, I buy new toolbox. To install new one, should I reinstall MATLAB? or can I install new toolbox only?

Tags:

3

answers

Show animation of the double pendulum's (mostly) chaotic behavior.

Thumbnail

Sum of series I What is the sum of the following sequence: Σ(2k-1) for k=1...nfor different n? %%n = 1;s_correct = 1;assert(isequal(sumOfSeriesI(n),s_correct))%%n = 2;s_correct = 4;assert(isequal(sumOfSeriesI(n),s_correct))%%n = 10;s_correct = 100;assert(isequal(sumOfSeriesI(n),s_correct))%%n = 15;s...

Coding a cantilever beam with lumped spring mass and applying a point load on the free end. I want to get the response for the free vibration and forced vibration case. Please help

0

answer

Hi Where can I find instructions for online installation, hoping the installation nightmare ends ? Thanks in advance. Manolis

0

answer

hi, i need to plot my corrdinates vs time. and my time to run with a loop function repeatedly. is there any other method for me to try without loop or any command options?

0

answer

i have to model a PV array connected to grid is working with Frequcny regulation and voltage regulation without ESS. i have read some paper and got to know about Deloading and VSG. but not getting how to implement it?

0

answer

I am getting error for configurable subsystem in R2024b error : :"Configurable subsystem must be converted to Variant subsystem" Can I know the why this issue is occuring?

Tags:

0

answer

test

Thumbnail

Check out the result of "emoji matrix" multiplication below. vector multiply vector: a = ["😁","😁","😁"] b = ["😂"; "😂" "😂"] c = a*b matrix multiply matrix: matrix1 = [ "😀", "😃"; "😄", "😁"] m...

0

reply

Monte Carlo Simulations for 3D Path Planning of quadrotors in wind and urban enviornment

Thumbnail

Combination from EZNEC and MATLAB programs for wire antennas

Thumbnail

In computer vision, pretrained models are often used and adapted to the task at hand by performing transfer learning. Transfer learning involves modifying and retraining a pretrained network with your data. Most pretrained models are trained on large, colorful image datasets like ImageNet. But how ...

Categories:
Thumbnail

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:

Control

Thumbnail

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

I am looking for a Simulink tutor to help me with Reinforcement Learning Agent integration. If you work for MathWorks, I am willing to pay $30/hr. I am working on a passion project, ready to start ASAP. DM me if you're interested. TUTOR NEEDED!! OFFER $20/hr!!

0

reply

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

So, in my attempt to add a settings feature to my web app, I have managed to add a settings tab with one uicontrol. When it's value is changed, it saves its value to a MAT file. Next, when the app...

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

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

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

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