Respondida
minreal tolerance not respected
Hi Daniel, As best I can tell after sifting through the code, tol is generally compared to the distance between the zero and po...

más de 3 años hace | 1

Respondida
Energy and Power of a Piecewise Function
Hi Iakovos, Try using piecewise to simplify things. syms t real x(t) = piecewise(-3 <= t <= 0, cos(sym(pi)*t),0 < t <= 2, 2, ...

más de 3 años hace | 1

| aceptada

Respondida
DC gain for FIR high-pass filter using fir1
Hi Masao, Let's try the proposed methods. High-pass fir1 filter bhigh = fir1(500,5/750,'high'); [h0,w] = freqz(bhigh,1,0:.00...

más de 3 años hace | 0

| aceptada

Respondida
Plotting sin (x/x) function in terms of Mag(dB) over Frequency
Hi IFECHUKWU, sin(x)/x can take on negative values, for example x = 5*pi/4; sin(x)/x Taking the log10 (as neeed for dB, not ...

más de 3 años hace | 0

| aceptada

Respondida
DSP/IIR filter butterworth
Hi Steven, Here is the original code (with minor changes) fpass = 2500; fstop = 4000; As = 95; Rp=3; fs=44100; %Data wp=(fpas...

más de 3 años hace | 1

| aceptada

Respondida
nonlinear variable state space observer pole placement
Hi Bernd, Matlab assumes by default that all sym variables are complex, and this assumption can sometimes lead to unexpected re...

más de 3 años hace | 2

| aceptada

Respondida
How to mean data of second column with respect to the similar element in the first column
Check out splitapply. Applies directly to this problem.

más de 3 años hace | 0

Respondida
Problem with factoring a symbolic variable
If only one term contains Td_s, then syms T_u T_t T_s tau_u Tdd_u Tdd_t Tdd_s Td_u Td_t Td_s; eq = sin(T_s - T_u)*Td_s^2 + sin...

más de 3 años hace | 0

Respondida
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
I wish that the Categories feature be much more useful. Check out hte categorization of this Question: Scroll over the right ...

más de 3 años hace | 0

Respondida
Use Matlab Function Block to plot into figure created by Matlab Script
Hi Jannis, I got this model to work The code in the Matlab Function block is function y = fcn(u,t) persistent ax1 if ...

más de 3 años hace | 0

Respondida
Gain/phase margin calculated relative to -540.
Hi Jaco-Louis From the Question: "... according to the margin documentation it is supposed to return the minimum margins, which...

más de 3 años hace | 0

Respondida
z transform of a left handed sequence
Hi AlireaA You are on the right track by breaking this problem into two parts. Let's look at the first part syms n integer sy...

más de 3 años hace | 0

| aceptada

Respondida
z transfer function evaluates to inaccurate value near z=1
Hi Ashish, This problem illustrates a couple of things to keep in mind when using the Control System Toolbox Here is the origi...

más de 3 años hace | 2

Respondida
Failing to plot a fourier transform
Hi Lorenzo, On the face of it, the Symbolic Math Toolbox treatment of (normalized) sinc(x) is disappointing. Perhaps there are ...

más de 3 años hace | 1

| aceptada

Respondida
Infinity appears at Constant block in Simulink
That “inf” is the sample time of the constant block. As is the “D1” on the other blocks. Check the Simulink doc on sample times ...

más de 3 años hace | 0

| aceptada

Respondida
How to apply the reference target for LQR or LQG controller
Hi JS, One common way to track a reference input with a Type 1 system is to use integral control by augmenting the plant with a...

más de 3 años hace | 1

| aceptada

Respondida
Why am I receiving three outputs for this lsim function?
Hi Hunter k1=1; A=[0 1 0 0 ;-k1 -0.4 k1 0.4 ;0 0 0 1; 0.25 0.1 -0.25 -1.35]; B=[5;0;0;0]; C=[1 0 0 0]; D=0; x0 = C; t = 0...

más de 3 años hace | 0

Respondida
Solve differential equation to get variable
Hi Milan, I modified as follows. Not sure if this is what you're looking for: syms d_F ; syms d_F_c; syms dM_B; %syms Thet...

más de 3 años hace | 0

| aceptada

Respondida
How to fix errors within double integral.
Hi @Amanda, The doc page for integral2 say that the function that defines the integrand "must accept two arrays of the same siz...

más de 3 años hace | 0

| aceptada

Respondida
Having trouble with nonpolynomial equation systems
Equations 1, 2, 5, and 6 can be solved for a parametric solution under some (I hope) reasonable asumptions on the variables. I c...

más de 3 años hace | 0

Respondida
Signal dimensions inside a simulink function
Based on the error message, it sounds like you'e requried to specify the dimensions of that outport. Do you know what the dimens...

más de 3 años hace | 0

Respondida
Can anyone help understand what the blocks in this figure are and where to find them in Simulink library?
Assuming these are both from Simulink library. 1. Double click on the block. The BlockType will be at the top of the resultsing...

más de 3 años hace | 0

Respondida
location of second peaks in fft
Hi peter, The elements of the output of fft as implemented in Matlab correspond to angles around the unit circle. For an N-poin...

más de 3 años hace | 0

| aceptada

Respondida
integral of two added function can't be implemented
Hi Faisal, If the plot for the answer to Q4 is corret, then does the integration really need to start from -inf? However, I su...

más de 3 años hace | 0

Respondida
Symbolic dependency apparently sometimes gives wrong answers
Hi Mohammad, This works, at least for the examples cited in this comment. Haven't tested for anything but those examples. syms...

más de 3 años hace | 0

Respondida
how to find the area between sinx and sin2x with plot on range [0,pi] as from this code its giving negative area,?
Hi Aashay, After commenting out the code for pos and negArea that wouldn't run because y is not defined (and even if was define...

más de 3 años hace | 0

| aceptada

Pregunta


Should ztrans Work Better when Using heaviside() ?
Recently ran across peculiar behavior with ztrans. Define some variables syms n integer syms T positive Set sympref so that ...

más de 3 años hace | 0 respuestas | 0

0

respuestas

Respondida
how to make a sum of squares symbollically known to MATLAB for use in simplification
Hi Michael, simplify works for this case: syms a b c d x y z f = (a) * (b) * (c) * (1- x^2 - y^2 - z^2) * (d) assume(1 - x^...

más de 3 años hace | 0

Respondida
eigenvalue diagonalization in matlab
Does eig not provide the solution, assuming a solution exists?

más de 3 años hace | 0

Respondida
Measure Phase/Gain Margin from a different phase reference using margin()?
Hi Alex, I'd look at the problem as follows syms s T0 = sym(-97.74e3); % T0, the DC loop transmission f0 = sym(5); %...

más de 3 años hace | 0

| aceptada

Cargar más