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

9 månader 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;...

9 månader 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 ...

9 månader 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...

9 månader 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 ...

9 månader 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...

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

| accepted

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

9 månader ago | 2

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 0

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

9 månader ago | 1

Answered
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

9 månader ago | 0

| accepted

Answered
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

9 månader ago | 0

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

9 månader ago | 1

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

9 månader ago | 0

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

9 månader ago | 0

| accepted

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

9 månader ago | 0

Answered
Denominator for the nth order inertial term.
Understood your question correctly, that would be somewhat like e.g.: num = 1.0506; SYS = tf(num, [1 1 1 1 1 1/4]); % 5th ord...

9 månader ago | 0

Load more