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

environ 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans 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 2 ans il y a | 0

Réponse apportée
Custom dataset in matlab
There are a few different built in functions to import *.csv data into MATLAB workspace, e.g.: FName = 'DATA.csv'; % Way 1. re...

environ 2 ans il y a | 0

Réponse apportée
Extract row data from a complex data file
Here is how it can be attained: filename = 'complex_data.txt'; % Set up the Import Options and import the data: opts = delimi...

environ 2 ans il y a | 0

Réponse apportée
Sum of three phasors
If understood correctly, what you are trying to get is: A1B1 = 2+3i; A2B2 = 5+6i; A3B3 = 1.5 - 3i; Phase_AsBs = @(a,b,c) (a+...

environ 2 ans il y a | 0

Réponse apportée
Finding a correlation table
One appropriate code for corr table is this one: https://www.mathworks.com/matlabcentral/fileexchange/30151-shaded-correlation-t...

environ 2 ans il y a | 0

Réponse apportée
How to find gradient of a vector field in matlab symbolic
If you assign an expression for V, you will get this: clc ; clearvars syms x y z syms u(x,y,z) v(x,y,z) w(x,y,z) V(x,y,z) ...

environ 2 ans il y a | 1

Réponse apportée
Plotting .mat file
The problem with your data is that you have not collected any measured data or saved in it. A = load('metro.mat') A.AudioInfo

environ 2 ans il y a | 0

| A accepté

Réponse apportée
How to find the minimum difference between the 3 elements of a vector in app designer?
Try to implement pdist2()

environ 2 ans il y a | 0

Réponse apportée
Change The structure of a Variable
Your question is not quite clear to me. If your want to get cell array converted into Table, then use cell2table() - DOC

environ 2 ans il y a | 0

Réponse apportée
solving four equations to find I1, I2, I3, I4 as functions of R1, R2, R3, V1 and V2
Here is the corrected code (there were some character problmes and undeclared V1 V2 R1 R2 R3 vars): syms I1 I2 I3 I4 V1 V2 R1 R...

environ 2 ans il y a | 1

Réponse apportée
Having problems with integration equations.
Hi Thomas, Actually, all calcs are correct - see: syms t v_1 = 90/(1+0.3*t); d_1 = int(v_1,t) % Here d_1 is verified V...

environ 2 ans il y a | 0

Réponse apportée
How to find root locus of a polynomial
Here is how to get the roots plotted. m_s = 1; % Mass of the spring m_r = 68; % Mass of the rotor k_r = 5.45e5; % Spring...

environ 2 ans il y a | 0

| A accepté

Réponse apportée
Importing Dates as variable names in an table from Excel
Here is one option that partially solves your exercise and explains it can't be solved completely: T_VARS = readtable('VAR_SAVE...

environ 2 ans il y a | 0

Charger plus