Answered
X(t)=0.1179e-25.2tsin(50t+0.3224π } Use MATLAB to Plot X (t)with time and determine the amplitude and phase angle of the transient response within the system
Do these steps: (1) Initialize t: (2) Compute: X(t) (3) Plot: t vs. X: (4) Compute magnitude: (5) Compute phase angle:

2 years ago | 0

Answered
How to solve Algebraic Loops in half car model with PID controller
Hi @Mücahit, There are a couple of derivative blocks in your model that creates all instability (spikes are occuring due to d...

2 years ago | 1

Answered
la función syms no funciona [syms function not working]
Is this what you are trying to achieve (È questo ciò che stai cercando di ottenere?): % Initialize symbolics syms H(x) F(x,y) ...

2 years ago | 0

Answered
how to solve log log equation??
Here is the corrected code (note how the EQN is set up for the given equation): clc, clearvars syms m m1=7; m2=9.41; t1=2...

2 years ago | 0

Answered
How can I get a table from a website?
How about this (it is not a complete answer, but it can be worked around :) .. ): URL = 'https://www.cbssports.com/fantasy/foot...

2 years ago | 0

Answered
videos run slowly on video labeler
There could be a few things: (1) Hardware issues with your computer. Check your computer's technical specs for video playback ...

2 years ago | 0

Answered
How to solve Algebraic Loops in half car model with PID controller
By glancing at your Simulink model, that looks ok without seeing f(u)'s. I can see the problem is in f(u) function definitions. ...

2 years ago | 1

Answered
Getting joint lines in 2-D plot instead of a single line.
Small correction is needed with the indexing, see this sample code: X = [ 0 5 10 15 -3 -5]; Y = [2*X.^2+2; 3*X.^2+2; 2.5*X.^2+...

2 years ago | 2

| accepted

Answered
In CERR: How to loop a function for several planC's
If understood correctly, it can be attained something like this (presuming the fcn file getStructureDistance.m has some input va...

2 years ago | 0

Answered
Why sim() can not read pretrained dqn-agent ?
Note that sim() function is used to simlate Simulink models not M-files or MLX-files - see DOC. To call and execute M or MLX fil...

2 years ago | 0

| accepted

Answered
Error when plotting a stacked bar chat.
Here is the corrected code: x = ["1980M11"; "1985M01"; "1986M01"; "1991M09"; "1994M07"; "1997M07"; "2007M07"; "2012M06"; "2015M...

2 years ago | 1

| accepted

Answered
Where is the error and how is the code correct?
Here is the corrected code: % Sample data points x = [1, 2, 3]; f = [2, 5, 10]; % Call the function for curve fitting d...

2 years ago | 0

| accepted

Answered
How should I call th function?
There are are a few output variabales missing in the fcn: bode_as21. Besides, Wl is incorrectly assigned that should be tf and c...

2 years ago | 1

| accepted

Answered
Vectors mut be the same length.
Check what is the size of the transfer function W1 size at first and then the question becomes clear. Since k, T1, T2 are not...

2 years ago | 0

| accepted

Answered
Simscape port connection using simulink Matlab
It looks like your model requires PS-SImulink converter - see DOC

2 years ago | 0

Answered
For loop to enter values in array inputted by user.
Here is a bit sipler solution: x = 0; xn = []; while ~isempty(x) x = input('Insert the X components of signal (INCLU...

2 years ago | 0

Answered
Only plot outline of graph
In this exercise, envelope() with 'peaks' options does a good job, e.g.: % Numerical data (generated as an example) N = 1e3; ...

2 years ago | 0

Answered
Can't save new file even though I definitely have write permissions
Check the permission: % Specify the path you want to check folderPath = '/path/to/file/file.mat'; % Get file attributes attr...

2 years ago | 0

Answered
Advice on data normalization in k-fold cross validation
For data normalization, you can use MATLAB's builtin fcn: normalize(), e.g.: A = 1:5; A_nor = normalize(A, 'range') Once you ...

2 years ago | 0

Answered
auto detection of an image bacjground and blur it
Here is one code that requires yolov2ObjectDetector() from YOLO model and does the job partially. % Read your image: O_Image ...

2 years ago | 0

Answered
Why does parpool sometimes fail to initialize seemingly randomly and sometimes it works?
(1) Try to increase the MATLAB's memory management based on the your system resources. (2) Also try to configure the max number...

2 years ago | 0

Answered
How to handle logical arrays in Simulink?
Yes, it can be worked around - see this plain model:

2 years ago | 1

| accepted

Answered
normalise two plot by there area
Briefly speaking normalizartion means to have the values of a variable with respect to "some value" , e.g.: A = [5 2 3 10] % T...

2 years ago | 0

Answered
How to handle logical arrays in Simulink?
See this screenshot:

2 years ago | 0

Answered
How to handle logical arrays in Simulink?
Of course Simulink blocks can be used. Simulink library has a bunch of logic operation blocks - follow to see them: Simulink ->...

2 years ago | 0

Answered
Convert discrete sys to continuous sys using delays using linear-fractional transformation (LFT)
Is this what you are getting: % EXAMPLE CODE % % Declare MIMO matrices A,B,C,D A = [-0.31261936441776167,0.28772503446055314;...

2 years ago | 0

Answered
MATLAB system requirement for a faster Simulink output
To suggest you or somebody to upgare one's PC is quite subjective opinion I believe. Because the end user and who is paying for ...

2 years ago | 0

| accepted

Answered
Matlab step() from Simulink dataset
Hi Oleg, One can obtain tf or state space representation of the system model from a Simulink model by linearizing it the Simuli...

2 years ago | 0

Answered
FFT function error with higher size of data
In your exercise, fftn() would be faster and more efficient to run simulations - see DOC. However, in order to estimate which ...

2 years ago | 0

Answered
Moving Standard Deviation issues with NaN values (i.e., Stdfilt). Alternatives and workarounds?
NaN values can be substituted with (1) "some value" or (2) next to it value or (3) skip nan values element, e.g.: A = randi([-3...

2 years ago | 0

Load more