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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

| aceptada

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

Respondida
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,:),'...

alrededor de 2 años hace | 0

Respondida
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') ...

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

| aceptada

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

alrededor de 2 años hace | 2

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 1

Respondida
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

alrededor de 2 años hace | 0

| aceptada

Respondida
How to find the minimum difference between the 3 elements of a vector in app designer?
Try to implement pdist2()

alrededor de 2 años hace | 0

Respondida
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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 1

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

alrededor de 2 años hace | 0

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

alrededor de 2 años hace | 0

| aceptada

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

alrededor de 2 años hace | 0

Cargar más