Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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_...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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,[])

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
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 ...

presque 4 ans il y a | 0

Réponse apportée
Multivariable Zeros using Generalised Eigenvalue Problem
Is tzero what you're looking for?

presque 4 ans il y a | 0

Réponse apportée
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...

presque 4 ans il y a | 0

Réponse apportée
diffrent plots if I add the command assume (0<=t) why ?
I suggest getting in the habit of using heaviside for problems like this syms t f_t3 = cos(12*t)*exp(-0.4*t)*heaviside(t); f_...

presque 4 ans il y a | 1

Réponse apportée
44.1 kHz Sample Rate
The main question is: why is there a magnitude peak, even after the signal has been filtered? If the input to a stable, linear ...

presque 4 ans il y a | 1

Réponse apportée
Introduce step signal after system response
Hi mikel, No need to use ode45 for this particular problem. The delayed step response with initial conditions can be obtained a...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
What is the use case for ifft's trailing zero padding? Why is that the default?
Hi Kevin, I think the title question is misleading. The result of zero padding ifft is not incorrect. It does exactly what it c...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to find empirical and estimated (Weibull) probability density
fitdist might do the trick for fitting the distribution

presque 4 ans il y a | 0

| A accepté

Réponse apportée
unexpected object of type 'RootOf'
I'm going to speculate that the denominator of Zges*rect in Aufheiz6Var is of too high of an order for the Symbolic Math Toolbox...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Changing delay length to solve algebraic loops
Refering to the block diagram at the top of the question .... Would it be correct to replace the IC block with a Constant block...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Calculate Impedance of circuit using laplace transform.
Assuming that the input voltage has a Laplace transform, you can multiply Zges with the Laplace transform of the input and take ...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
I am trying to plot this piecewise function using for loop and if statements, yet I keep receiving error message: Array indices must be positive integers or logical values.
Hi Errol, The error message shows up because the code uses g as a subscript into C, and g takes on non-integer values. But g is...

presque 4 ans il y a | 0

Réponse apportée
Using mscohere() on two Signals with different sampling frequencies each
resample might be useful to bring the sampling rates together. Lots of options involved, so probably want to experiment to make ...

presque 4 ans il y a | 0

Réponse apportée
Replacing elements in a vector
array1 = [1 2; 4 2; 5 5; 4 2]; vector1 = [2 1 1 4 3 4]; result = [2 1; 4 1; 3 3; 4 1] result1 = vector1(array1)

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Creating a string with Permutation
Hi hazmah, Is this what you're looking for? Axes_name = string({'sint0.2';'sint0.5';'sint0.7'}) fold_2 = string({'BCA';'BPCA'...

presque 4 ans il y a | 0

Réponse apportée
Visualising symbols inside the tranfer fcn block in Simulink
Make the Transfer Fcn block a little bit bigger by selecting it and stretching it with the mouse.

presque 4 ans il y a | 0

| A accepté

Réponse apportée
get specific magnitude response value given a specific frequency from a freqz graph
freqz accepts a third argument that allows the user to specify the desired angular frequencies to evaluate (it must have at leas...

presque 4 ans il y a | 0

Réponse apportée
Why I get two different covariance matrix?
Hi Ali, Perhaps Prof. Ng has some additional assumptions about the data that aren't included in your question. To compute the c...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Viewing .slx model figue without Simulink
Can you use Simulink Online ?

presque 4 ans il y a | 0

Réponse apportée
Is it possible to solve multiple linear systems of equations in parallel with one matrix operation?
Hi Bill, pagemldivide introduced in 2022a can do the trick. Whether or not this is really better than the loop .... Aa = [ 0.8...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
I should convolve my signal with which function to have the signal itself?
Hi Donya, dirac is only defined in the Symbolic Math Toolbox and so should only be used for symbolic math, and only for continu...

presque 4 ans il y a | 0

Réponse apportée
Error when taking the continuous time Fourier transform
Using some examle data ... A = 1:5; std_A = 11:15; syms t w real f(t) = sum(exp(-t./A))*heaviside(t) std_ft(t) = sqrt(sum((...

presque 4 ans il y a | 0

| A accepté

Charger plus