Answered
Sum of series (symsum) in Simulink
I was able to get a workable soluion using only Simulink blocks by setting up the equation and solving for mu with an Algebraic ...

3 years ago | 0

| accepted

Answered
Solution of differential equation
Simulink provides many optiions for exporting simulation data to the Matlab workspace, after which one can anlayze it, process i...

3 years ago | 0

Answered
Finding the H infinity norm of a system
Following up on this comment ... Can the equations not be writen in state space form only because it's impractical to do so, or ...

3 years ago | 0

Answered
Constant block doesn't accept array
What is the value of A in the base workspace? Or whatever workspace it lives in. Note that “A” in the From and GoTo blocks ha...

3 years ago | 0

| accepted

Answered
Deconvolution of signal 1 from a known signal 2
I'm pretty sure that any DFT (fft()) based method will have limitiations, but we can try as follows. Assume that the system mod...

3 years ago | 1

Answered
I want to plot a complex function f(z) in 3D
f(z) can be defined by: f = @(z) conj(z)./z; As for the plot, that depends on the kind of plot that's desired. Here's a plot ...

3 years ago | 0

Answered
Step change in model parameters - simulate load step response with internal states as starting point
Hi J B, Example system sys1 = rss(2); Use step to generate the initial step response and collect the state variables [y1,t1,...

3 years ago | 0

| accepted

Answered
I designed a filter in matlab, but it's pass band seems to be central symmetry.
HI 瑶 何 Hard to say much without seeing the actual data or the full code used to generate the plots. Having said that, it appear...

3 years ago | 0

| accepted

Answered
Define matrix array as functions
If you're trying to store M1 for all values of n, then M1 needs to be 2 x 2 x n M1(:,:,n) = [M1a(n) M1b(n);M1c(n) M1d(n)]; Con...

3 years ago | 0

| accepted

Answered
Solution for the multiple repetition of Simulink simulation
Check out Simulation in the doc. The links from that page should provide lots of relevant information.

3 years ago | 1

Answered
How do I obtain the transfer function of this model? Simulink Linearization
Hi Jacob, The Simulink linearization is coming up with the correct answer as far as I can tell: r3=0.0254; %R3 (meters) r2=0....

3 years ago | 0

| accepted

Answered
How can I compute structured singular value with repeated full complex blocks as allowable structured uncertainty
I think the model can be refactored so that instead of having three, Ny x 3*Ny full block uncertainties you have 3*Ny^2 diagonal...

3 years ago | 0

Answered
Frequency input to Transform Function
Hi Nerma, Check freqresp. The second argument should be a real vector of frequencies (typically > 0). The multiplication by 1j ...

3 years ago | 0

Answered
How to solve a system of linear homogeneous equations in which the unknowns are column matrices?
Hi Celso Accroding to linsolve: "If the system does not have a solution, linsolve issues a warning and returns X with all eleme...

3 years ago | 0

Answered
Vertical line for Bode plots
Hi, Nerma, xline draws the line in the current axes, which appears to be the phase axes, which aren't visible. So we can do thi...

3 years ago | 1

| accepted

Answered
Plotting the distance between 2 time stamped sets of 100hz Navigation data (difference in Latitude & Longitude)
Hi John, As always, it's best to post some sample data and code and then explain what you think isn't working or what you'd lik...

3 years ago | 0

Answered
How to plot the movement of system roots(poles) with variations to a free system variable
Hi Sohail, Let's let a2 = 1; a1 = 1; We can still set up the problem for using root locus sys = tf(1,[a2 a1 0]); % D(s) = 0 ...

3 years ago | 0

Answered
Why does yulewalk produce an unexpected dip in the middle?
Hi Nathan, Here's the original code from the question. % Get data clc;clear;close;format compact; format short g; Fs = 48000...

3 years ago | 0

| accepted

Answered
Solving a system of equations
Hi Mitra Maybe this will extend to the larger problem. syms x1 y1 z1 x2 y2 z2 syms a [1 20] A=[x1,y1,z1,0,0,0,1].'; B=[a1,a...

3 years ago | 0

Answered
How to return function arguments as a struct?
Change the signature of the function to function out = designSpec(varargin) At the bottom of the function assign to the struct...

3 years ago | 0

| accepted

Answered
When simulating the response to a specific input signal, the input data U must be a matrix with as many rows as samples in the time vector T
Hi Federico, If sysansq_equi.B has five columns then INPUT_equi must also have five columns. Also, the number of rows of INPUT_...

3 years ago | 0

| accepted

Answered
How to concatenate elements in cell array to a vector?
Q= [23 34; 44 55; 56 71; 63 49; 71 30]; B= [12 13; 10 99]; C{1}=Q; C{2}=B; Output = reshape(vertcat(C{:}).',1,[])

3 years ago | 1

| accepted

Answered
FFT convolution and iFFT process
Hi Yassine, What does this mean: "df (can be variable),"? df should be a constant for all of FT. Is that not the case? Let's...

3 years ago | 0

Answered
Accelerance FRF with modal FRF?
The two blue curves look pretty close, perhaps just off by a scale factor (except for the dip at ~600 Hz?). Those curves are the...

3 years ago | 1

| accepted

Answered
How to plot imported data into matlab equations
One way that uses symbolic (which isn't really necessaray) syms omega mu epsilon sigma h k1 = omega .* sqrt((mu .* epsilon)/(2...

3 years ago | 0

Answered
The numerator returned from ord2 function is not directly compatible with tf2zpk function.
Hi James, I'm not sure this really is a problem; all functions are working as documented. A shorter way to get the z,p,k of the...

3 years ago | 0

| accepted

Answered
Symbolic solve with user-specified precision
Hi @Kylekk Perhaps I don't fully understand the Question, but I don't think there's a way to force the Symbolic Toolbox to find...

3 years ago | 0

Answered
Determining highest power frequency in noise signal
Hi Walter, The original code in the question subtracted the mean of the entire signal (T), not the mean of just the portion to ...

3 years ago | 0

Answered
Multivariable Zeros using Generalised Eigenvalue Problem
Is tzero what you're looking for?

3 years ago | 0

Answered
How do i delete the spaces that are in the middle of a string array?
replace seems to do the trick Single char: str=' 123 456 '; replace(str,whitespacePattern,'') Cell array of chars rep...

3 years ago | 0

Load more