回答済み
Taking the sum of exponentials
Break it up with simple inputs to see what's going on: x = [1 2]; % row vector a = [1 2 3]; % row vector x./a(:) % implicit e...

4年以上 前 | 0

回答済み
How do I generate a random number between two numbers with using a distribution
Emre, The statement that the the random() command only generates integers doesn't sound correct. The doc page shows an an exam...

4年以上 前 | 1

回答済み
Why do I get an error when I try to use the solve function?
solve() requires the inputs to be Symbolic Math objects syms x y [x,y] = solve(x + 2*y == 4, 2*x - y == 3) % note the use of ...

4年以上 前 | 0

回答済み
Simulink - Multiplication of Two Sine Signals (i couldn't understand the logic)
Question 1: How does the value of the signal dimension ( [5x1] ) was created? I mean which parameter for sine wave dis affect th...

4年以上 前 | 1

| 採用済み

回答済み
For spectroscopic analysis is it better to use a fft, a spectrogram (short Fourier transform), or a discrete Fourier transform?
The FFT, implemented in Matlab by the fft() function, is just an algorithm for computing the Discrete Fourier Transform (DFT) of...

4年以上 前 | 0

回答済み
Replacing symbolic subexpression with unspecified arguments
Not 100% clear on the question. Maybe this? syms a1 a2 a3 a4 x1 x2 x3 x4 syms a x y(a,x) = sin(a * sin(x)) y(a2,x2)

4年以上 前 | 1

回答済み
Incorrect Frequency response from Transfer Function
The frequency input to freqs is in rad/sec. If you want to match the correct output, the code will at least need to be: whz = ...

4年以上 前 | 0

| 採用済み

回答済み
How to determine the transmittance of a closed system using symbolic calculations?
Correct that feedback(), tf() and Control System Toolbox functions in general don't work with sym or symfun objects. Within the ...

4年以上 前 | 0

回答済み
FFT gives wrong answer for a generating function
Define the function to evaluate f(theta) ffunc = @(theta) (theta.^4 + 1); % only valid between -pi and pi, zero otherwise Defi...

4年以上 前 | 0

回答済み
Transfer function error help
The denominator is missing a * multiplication. Maybe you meant: [L*C*(R1+R2)*(R1*R2*C + L) R1] Note the * between the two t...

4年以上 前 | 0

回答済み
How to calculate the norm of the transfer function in frequency domain?
Check out doc tf to learn how to create a transfer function (tf) object. Once you have G(s) defined as a tf object use bode() ...

4年以上 前 | 1

回答済み
Spectra replica after sampling a continuous time signal
Here is an illustration using a different signal; maybe it will provide some insight into your specific problem. Define a conti...

4年以上 前 | 1

回答済み
How to find the area under part of the histogram
Replace sum() with cumsum() and then subtract to get the area between two bins of interest? doc cumsum

4年以上 前 | 0

回答済み
What is wrong with my Code? (Fast Fourier Transform)
The problem can be solved symbolically or numerically. First symbolically. % define duration and frequency Td = 0.002; fc = ...

4年以上 前 | 0

回答済み
How to find IDTFT of an array in matlab?
As @Matt J noted, you can specify the frequency vector that freqz should use to cover whatever frequencies are desired. Or freq...

4年以上 前 | 0

| 採用済み

回答済み
Differential Equation Solution incorrect with matlab compared to maple
The Maple solution does include imaginary terms, like 5*pi*1i/3, but we'll show that those terms cancel out on the interval of i...

4年以上 前 | 0

| 採用済み

回答済み
Using fft to plot frequency spectrum of sum of rectangular pulses
The code below illustrates the analysis for one component of the signal. It can be adapted to include both components of the sig...

4年以上 前 | 0

| 採用済み

回答済み
Integral not being computed
Simplify normDf before applying int(). Don't know why int() doesn't do this on its own syms t assume(t, "real") f1 = 3*t-t*t...

4年以上 前 | 0

| 採用済み

回答済み
Simulink vector index assignment / re-ordering using Selector block
Normally, you can put any Matlab expression in a block parameter dialog. So if u_pos and du_pos are defined in a workspace that...

4年以上 前 | 0

| 採用済み

回答済み
why my fft does not match my convolution ?
The DFT of the product of two finite duration sequences is the normalized circular convolution of their DFTs. For example: x = ...

4年以上 前 | 0

| 採用済み

回答済み
How do I get time-domain data for Control System Internal AnalysisPoints
I think this function can find the model from any input to any output, including Analysis Points doc getIOTransfer

4年以上 前 | 0

回答済み
Trying to plot a frequency response (magnitude and angle) using the equation of a forced vibration
According to the problem statement, the time increment should be 0.01 t = 0:0.01:1; Other than that, the Matlab code implement...

4年以上 前 | 1

回答済み
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, and as many columns as input chan
The size of u is 8 x 101. But as the error message says, it must have the same number of rows as t has elements (101), and it m...

4年以上 前 | 0

| 採用済み

回答済み
c2d function with "impulse" method to transform the loop gain from s-domain to z-domain.
I scanned the paper and also cannot recreate their results. Because HDAC has the form of a zero order hold, I would have tried: ...

4年以上 前 | 0

回答済み
Multiplication of non-zero symbolic functions yields zero answer
Disclaimer: The doc page shows no examples of multivariate piecewise functions. I assume that is ok and that piecewise still ju...

4年以上 前 | 1

| 採用済み

回答済み
what is the relation between π*radian/sample and Hz in frequency axis of wvtool for windowing?
Very short answer: In discrete time* using the nomenclature of wvtool and freqz, "Hz" means cycles/sample (not cycles per sec). ...

4年以上 前 | 0

| 採用済み

回答済み
How to extract data from a structure? How to concatenate the extracted data in array or matrix?
Not sure what the issue is. The code posted in the question seems to work exactly as expected for 1-4 (except for the apparent ...

4年以上 前 | 0

| 採用済み

回答済み
Error in the integration result
Expected result after expand() and simplify() of fxy. Don't know why these operations are needed. syms x y Pi = sym(pi); % m...

4年以上 前 | 1

| 採用済み

回答済み
Plot Fourier transform of symbolic infinite periodic rectangular pulse
As far as I know, fourier() doesn't compute a closed form expression of the Fourier transform of a general, periodic function, t...

4年以上 前 | 0

回答済み
How to generate random state space that is both controllable and observable?
Can use this function doc rss to generate a random, continuous, state space model with poles in the LHP or origin. Not guarnat...

4年以上 前 | 0

| 採用済み

さらに読み込む