Réponse apportée
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...

environ un an il y a | 0

| A accepté

Réponse apportée
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...

environ un an il y a | 1

| A accepté

Réponse apportée
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...

environ un an il y a | 0

| A accepté

Réponse apportée
Simscape port connection using simulink Matlab
It looks like your model requires PS-SImulink converter - see DOC

environ un an il y a | 0

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
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; ...

environ un an il y a | 0

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
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 ...

environ un an il y a | 0

Réponse apportée
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 ...

environ un an il y a | 0

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
How to handle logical arrays in Simulink?
Yes, it can be worked around - see this plain model:

environ un an il y a | 1

| A accepté

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
How to handle logical arrays in Simulink?
See this screenshot:

environ un an il y a | 0

Réponse apportée
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 ->...

environ un an il y a | 0

Réponse apportée
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;...

environ un an il y a | 0

Réponse apportée
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 ...

environ un an il y a | 0

| A accepté

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
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 ...

environ un an il y a | 0

Réponse apportée
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...

environ un an il y a | 0

Réponse apportée
how to get outline of multiple shapes
Maybe you want to get something like this shape, e.g.: load('Data.mat') for ii=1:height(X) PGON = polyshape(X(ii,:),Y(ii,:),'...

environ un an il y a | 0

Réponse apportée
How to extract data from drawn images?
If you have a MATLAB figure, that can be used for data extraction, e.g.: figure('Name', 'Original plot') open('SIM.fig') ...

environ un an il y a | 0

Réponse apportée
Get specific data from if condition
If understood correctly, here is how to get it: ... for n = 1:length(ebnoVec) % Reset the error coun...

environ un an il y a | 0

Réponse apportée
Is there a faster complex exponent?
Let's compare two ways e.g.: Q = linspace(-10, 10, 1e6); tic; CQ1 = exp(1i*Q); T1 =toc tic; CQ2 = cos(Q)+1i*sin(Q); T2 ...

environ un an il y a | 0

Réponse apportée
Tables in Live Editor not consistent
Your output is correct, e.g.: MAG5 = magic(5); D1 = array2table(MAG5) D2 = array2table(MAG5, 'VariableNames',["C1", "C2", "C3...

environ un an il y a | 0

Réponse apportée
label each curve on semilog graph
Here are a couple of the possible ways to get this exercise done: t = logspace(0, 2, 1e3); Y1 = exp(sin(t)); Y2 = exp(cos(t))...

environ un an il y a | 0

Réponse apportée
How can i analysis this system?
Oksan, (1) Derive kinematic equations (relationships) of the bars and components: O2A vs. other bars (2) Write a code Start ...

environ un an il y a | 0

Réponse apportée
I need to know a command to find errors in data file
You stated greater or but your code statement is greater and equal: >= 1 & data <= 10 That should be: valid_data = data(data >...

environ un an il y a | 0

Réponse apportée
pzmap and bode do not return zeros for all specified outputs
Here is the corrected code: A = [ -1.6551724137931035e+0003 6.2068965517241384e+0002 1.0344827586206895e+0003 6.49984686...

environ un an il y a | 0

| A accepté

Réponse apportée
Trying to plot a function
Here is the fixed code: theta_shock = 0:90; M = 2; g = 1.4; half_cone = atand((M^2*sind(theta_shock)-1)./(M^2*(g+cosd(2*thet...

environ un an il y a | 2

Réponse apportée
How can I control the tolerance in vpasolve?
Here is one example show how to adjust vpasolve tolerance: syms x EQN = sin(2*x) == 0.5; % Default sol_D= vpasolve(EQN,x) ...

environ un an il y a | 0

Charger plus