Home - MATLAB Central

Ein offener Austausch für die Community der MATLAB- und Simulink-Benutzer


Why do I get the 'We have detected suspicious behavior' prompt? kA03q0000015O7gCAE 000184625

1

answer

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

Tags:

3

answers

This example project can be used as a reference design to get started with designing Battery Management System with MATLAB and Simulink.

Thumbnail

An algorithm for manifold learning and dimension reduction.

Thumbnail

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

Thumbnail

MATLAB/Simulink Based Modelling of Solar Photovoltaic Cell, Panel and Array

Thumbnail

PID controller simulator on an LTI system w/ or w/o input delays

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

BESS are commonly used for load leveling, peak shaving, load shifting applications and etc.

Thumbnail

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

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

Thumbnail

Virtual labs and mechanisms for studying controls.

Thumbnail

Hello, i am trying to make a bode plot of the transfer function of a twin-t notch filter, that i am analyzing. I was able to produce the transfer function, and the bode plot by hand, but i am struggling to do it in Matlab, here is what i have so far: r=320; %Resistance c=100*10^-9; %Capactiance p=(...

1

answer

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

Thumbnail

%Data Given N = 51; mu = 0.1; %Pa dt = 0.01; %delta time dr = 0.0002; %radius between the points rho = 1000; %kg/m3 k = [0,0.1,0.25,0.5,0.85]; %time R = 0.01; %m [r] = d_gridpoint(R); %Constant Break Down q = (mu*dt)/(rho*dr^2); p = (mu*dt)./(2*rho*r*dr); e = (2*mu*dt)/(rho*dr^2); aw = (q)-(p); ap ...

9

answers

I am trying to find zero-crossings of a function in Matlab and plot the points where zero-crossing occurs. However, i am not able to find an easy way. I tried and Matlab fnzeros, but i can't understand the spmak and x,y used in these function. The function for which i want to find zero crossing...

8

answers

I'm using Dell precision 7510 with preinstalled Ubuntu 14.04(I have the driver the NVIDIA). I just downloaded the MATLAB R2017a and I run into the following error. I just searched and found it's not just me who have the same problem. I wonder if this problem is fixable? To put it in another...

9

answers

How can I save the MATLAB command window output to a text file? kA00Z000001DXuqSAG 000100893

2

answers

When I plot the frequency domain the power is not 3 and 5 as I expect. I read the documentation for fft() and cannot figure out how to normalize my fft properly. Can someone explain the procedure to normalize the cosines and a Gaussian wave? Thanks clear all; %generate the signal t = 0:1/2000:.02; ...

1

answer

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

Thumbnail

I want to ask the user if they want to EXP1 or EXP2. If the user enters '1' or '2', then I want to display "running exp 1 or 2", otherwise I want the program to display error message until the user enters '1' or '2'. prompt = input('Please enter 1 for E...

4

answers

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

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

Hello i have a 54000 x 10 matrix i want to split it 70% training and 30% testing whats the easiest way to do that ?

5

answers

I have one equations.Transfer function s/(s+0.9425).And I want transform z domain. Can you help me ? Thank you.

3

answers

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

Thumbnail

How can I plot this state space like the graph I attached by using tf() and step() command? Thank you! I2/E0=1/(s^3+s^2+3*s+1)

2

answers

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

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

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

Thumbnail

this is the QAM modulation and demodulation tech. with speech example

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

Let's say I am working in the directory: /home/username/Matlab/ I want to save (in a script) the directory one above the one I am working in (to use it later in the script), so: newdir='home/username'; But I am working in different computers, so the 'username' changes, thus I wa...

4

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

I closed the "Current Folder" window by mistake. How can I re-display it?

4

answers

I have two categorical column vectors of size 872-by-1. I want to calculate the Levenshtein distance between these two. When I am using the command 'editDistance' for this I am getting an error as "Argument 1 must be a string array, a character vector, or a cell array of character vect...

1

answer

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

My code so far is below. I have the code so that it skips the first 19 lines and starts at line 20. However, I need to remove the NaN values that are in my data like Columns = [10;0.04500;0;NaN;NaN] for example. The line I have to remove the NaN's runs, it's just not removing them. I'm ...

4

answers

HVDC system with three level neutral-point clamped VSC

Thumbnail

Generate an image pyramid or reconstruct from a pyramid.

Thumbnail

Wilkinson's polynomials are a family of polynmials with deceptively sensitive roots.

Categories:
Thumbnail

I am trying to create a neural network using fitrnet and a dataset that is 1000x24. I am trying to use cvpartition to split the dataset into 80% training and 20% test. However, when doing so, I regularly get an error in the "RegressionChainEnsemble.m" file on line 140 saying "Unab...

0

answer

Hello, is there a way code pagewise multiplication along a single dimension of a matrix without using a for loop? In the example below, I have a single 4D matrix where I use pagewise multiplication...

0

answer

Over the last 5 years or so, the highest-traffic post on my MATLAB Central image processing blog was not actually about image processing; it was about changing the default line thickness in plots....

1

reply

I wrote This code to disply the word "Hi" in three lines of a Word document with font sizes 16, 32 ,and 48 but it didn't work as expected. clc clear wordApp = actxserver('Word.Application'); wordApp.Visible = true; doc = wordApp.Documents.Add; titleText = 'Hi'; Cont...

1

answer

I used this resource to find how to add minor ticks: I added it to my code below but it does not show up on my graph as seen in the picture (found under comments): figure (1) scatter(G.Date, G.(&...

2

answers

there is an example Import Infineon XML Parts Into Simscape IGBT and Diode Blocks There is no "deadtime" insertion between top/bottom swithing - still works :) why not is not there shoot-through? How ro add the deadtime insertion as of regular PWM generator does?

1

answer

This week's post is a suggestion from Raymond Estrada from MATLAB and Simulink Consulting Services. Raymond reached out recently to share a tip for verifying and validating logged signals in the code generated from Simulink.The ProblemIt's a common practice in the verification and validation...

Thumbnail

AMDM

Thumbnail

Is pure electric or hybrid the future? This has been a topic of debate in the industry. Today, we invite Hao Zheng, a technical officer from the China Society of Automotive Engineers and the Formula...

Categories:
Thumbnail

Shell structures circular

Thumbnail

H5N1 algorithm for solving single and multi-objective engineering problem

Thumbnail

Creates a stacked plot of any signal. Similar to what eegplot does but in a fancier way.

Thumbnail

Gall midges (Cecidomyiidae) are small dipteran insects whose larvae induce abnormal plant growths called galls.

Thumbnail

To develop uifigure-based app, I wish MATLAB can provide something like uiquestdlg to replace questdlg without changing too much of the original code developed for figure-based app. Also, uiinputdlg - inputdlg and so on. Need to have easy uifigure replacement for inputdlg, export2wsdlg et...

0

reply

A look at the structure, and the eigenvalues and singular values of interesting test matrices.

Thumbnail

So, I think I have finished the work to add a settings feature to my app. Now I want to write some more interactive tests to make sure it's working correctly. Features covered in this code-along...

Thumbnail

It is time to support the cameraIntrinsics function to accept a 3-by-3 intrinsic matrix K as an input parameter for constructing the object. Currently, the built-in cameraIntrinsics function can only be constructed by explicitly specifying focalLength, principalPoint, and imageSize. This approach...

1

reply

Learn the basic of quantum computing, how to simulate quantum circuits on MATLAB and how to run them on real quantum computers using Amazon Braket. There will also be a demonstration of machine learning using quantum computers! Details at MATLAB-AMAZON Braket Hands-on Quantum Machine Learning Wor...

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

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

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