답변 있음
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 ->...

7개월 전 | 0

답변 있음
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;...

7개월 전 | 0

답변 있음
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 ...

7개월 전 | 0

| 수락됨

답변 있음
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...

7개월 전 | 0

답변 있음
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 ...

7개월 전 | 0

답변 있음
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...

7개월 전 | 0

답변 있음
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,:),'...

7개월 전 | 0

답변 있음
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') ...

7개월 전 | 0

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

7개월 전 | 0

답변 있음
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 ...

8개월 전 | 0

답변 있음
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...

8개월 전 | 0

답변 있음
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))...

8개월 전 | 0

답변 있음
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 ...

8개월 전 | 0

답변 있음
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 >...

8개월 전 | 0

답변 있음
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...

8개월 전 | 0

| 수락됨

답변 있음
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...

8개월 전 | 2

답변 있음
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) ...

8개월 전 | 0

답변 있음
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...

8개월 전 | 0

답변 있음
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...

8개월 전 | 0

답변 있음
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+...

8개월 전 | 0

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

8개월 전 | 0

답변 있음
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) ...

8개월 전 | 1

답변 있음
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

8개월 전 | 0

| 수락됨

답변 있음
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

8개월 전 | 0

답변 있음
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...

8개월 전 | 1

답변 있음
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...

8개월 전 | 0

답변 있음
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...

8개월 전 | 0

| 수락됨

답변 있음
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...

8개월 전 | 0

답변 있음
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...

8개월 전 | 0

더 보기