Risposto
How to find DTFT of given sequence in matlab
Assuming that y(n) = 0 for abs(n) > 5, there are are only three values of n for which y(n) is non-zero. Put those values of n an...

oltre 5 anni fa | 0

Risposto
Printing out pi as a symbol in equations instead of the numerical value
If I understand the problem, it appears the idea is to define a function, an_Id, that can be used for both numerical evaluation ...

oltre 5 anni fa | 0

Risposto
probability - execution of an operation
If T has a normal distribution, then doc normcdf can be used to find the probability P(T < t)

oltre 5 anni fa | 0

| accettato

Risposto
Calculating and Plotting Weibull Distribution Function(wblpdf) with Cell Arrays
Here's an example that you might be able to adapt to your needs. >> params = {[1 2];[2 3];[3 4]}; % define cell array with par...

oltre 5 anni fa | 0

| accettato

Risposto
I want to find where the root locus branches cross the y axis.
One option would be to use the return values of rlocus: [r,K]=rlocus(G1) to get a coarse idea of the value of K that results i...

oltre 5 anni fa | 1

| accettato

Risposto
Convert transfer function writing form
Maybe something like this: >> H = tf([15 25 1],[5 0 5],-1) H = 15 z^2 + 25 z + 1 ----------------- 5 z^2 + 5...

oltre 5 anni fa | 1

| accettato

Risposto
Is it possible to manually connect the ABCD matrices to obtain the ss representation
Need to modify two lines of code as follows: clc; clear all; k = 1; m = 1; b = 1; A = [0 1; -k/m -b/m]; B = [0 1/m]'; C ...

oltre 5 anni fa | 0

| accettato

Risposto
c2d with 'impulse' method
I don't think you can use c2d() and get z/(z-1) with a sample time T = 0.1. In, short, the factor of 0.1 is needed to have the ...

oltre 5 anni fa | 0

| accettato

Risposto
Plotting a bode diagram without transfer function, using only magnitude and phase and frequency
You can use the data you have to make an frd model: doc frd Once you have the frd model you can make the bode plot using the b...

oltre 5 anni fa | 0

Risposto
How to programmatically know if a block is a sink block?
I'm actually suprised that there's not an easier way to to do this. The BlockType is a read-only so checking: ismember(get_par...

oltre 5 anni fa | 0

| accettato

Risposto
Symsum function for basic electrical engineering calculations.
symsum() is a function in the Symbolic Math Toolbox and takes in symbolic inputs. If I understand that code correctly, all of th...

oltre 5 anni fa | 0

| accettato

Risposto
How can I evaluate characteristic functions in MatLab?
The CF is the Fourier transform of the pdf. Approximate the pdf as a sum of line segments. Take the sum of the Fourier transfor...

oltre 5 anni fa | 3

| accettato

Risposto
Defined domain integral(convoulution) in simulink
Assuming h is constant and h >= 0 .... It seems like the model can be expressed as follows: wdot(t) = A*w(t) + B*u(t) z(t) = ...

oltre 5 anni fa | 0

Risposto
solving integral equation where the unknow is the upper limit
Assuming T and T0 are positive, it looks like there are two values of T that will satisfy the equation. Not sure why your code i...

oltre 5 anni fa | 0

| accettato

Risposto
Help using symbolic transfer function
Can do it by hand, at least for this simple case: >> syms K1 K2 K real >> syms s >> K = sym(6); >> G(s) = K1*K2/(s^2 - 3*s -...

oltre 5 anni fa | 0

Risposto
Extract values from Nyquist for negative frequencies
The Nyquist plot is symmetric, so the compex cojugate of the output would correspond to the negative frequencies. [re_pos,im_po...

oltre 5 anni fa | 0

| accettato

Risposto
Reducing fast dynamic poles in a transfer function.
Maybe freqsep() is what you want: >> G=tf(1,conv([1 5],[1 70])) G = 1 ---------------- s^2 + 75 s + 350 ...

oltre 5 anni fa | 0

| accettato

Risposto
Matlab Nyquist Sampling Problem
According to doc nyquist you can do nyquist(k1,w) where w is a frequency vector of your choosing.

oltre 5 anni fa | 0

Risposto
The output of my executed code is not giving the answer I am looking for when using the symUnit function
There are many options to which H*Hz can be converted; which one should be chosen automatically? But you can try it yourself: ...

quasi 6 anni fa | 2

| accettato

Risposto
Spring mass damper system shows position of mass only to be on positive side
The transfer function from Force to Position has dc gain of 2. The input F has a value of 2, so the steady state of the output ...

quasi 6 anni fa | 1

Risposto
Integral of exp(-x)*P(x)/Q(x) in terms of exponential integral in symbolic tooblox
What is the concern with the result that was returned? It looks like the SMT came back with the best answer it could with the in...

quasi 6 anni fa | 0

| accettato

Risposto
Zero-crossings of Nyquist Diagram
By definition, the gain margin is defined at the point(s) where the Nyquist plot crosses the real axis. Use the allmargin() func...

quasi 6 anni fa | 1

Risposto
What is wrong with my differentiation of function of phi(t)?
I think what you want is to substitute a variable for diff(fi,t), differenitate wrt to that variable, and substitute back. >> s...

quasi 6 anni fa | 1

| accettato

Risposto
Reduce block diagrams symbolically
Assuming you want final result in terms of the gi(s): syms g1(s) g2(s) g3(s) g4(s) g5(s) symsys1 = g4(s)-g5(s); symsys2 = g...

quasi 6 anni fa | 0

Risposto
Implement a Transfer Function in Code state space higher order
The short story is that dt is too large for this system. Try running with: dt = 1e-5; t = 0:dt:0.03; And don't set u(1) = 0....

quasi 6 anni fa | 0

Risposto
Symbolic Math shows weird behavior - not seen in Wolfram or Octave
It looks like the expected solution can be obtained with some work. Maybe someone else can get there faster. >> syms x real >...

quasi 6 anni fa | 1

| accettato

Risposto
Sample Time and simOut Interaction
Keep the orginal solver settings you had (assuming they gave you an acceptable solution). Set the Sample Time parameter in the ...

quasi 6 anni fa | 1

Risposto
Problem in matrix partition for uncertain system: how to find matrices A, B1, B2, C1, C2, D11, D12, D21, D22?
Suppose you have a model xdot = A*x + B1*w + B2*u z = C1*x + D11*w + D12*u y = C2*x + D21*w + D22*u This system can be rewri...

quasi 6 anni fa | 1

| accettato

Risposto
SS2TF Error
If you want the numerical answer, then don't even bother with the symbolic stuff. Just assign values to the variables R1, R2, C...

quasi 6 anni fa | 0

Domanda


Can a Comma Separated List be Generated Directly from a sym Array?
Can a comma separated list be generated directly from a sym array for use as input to a sym function? >> xvar=sym('x',[1 4]) ...

quasi 6 anni fa | 1 risposta | 0

1

risposta

Carica altro