Answered
Laplace transform not getting Value
I do not see any specific problems. syms x(t) Xs s eqn = diff(x,t,2)+2*diff(x,t)+26*x(t) == 10*cos(t)*(heaviside(t-pi)); ...

5 years ago | 0

| accepted

Answered
For machine learning classification between two samples, how can I focus on certain frequency components as the separating feature?
There may be many approaches to this. I actually did something similar using linear discriminant analysis (the Statistics and M...

5 years ago | 0

Answered
How can i create a discrete system with defined delays zeros and pole?
If you are starting with the pole and zero locations, you can get the transfer function representation easily by using the zpk f...

5 years ago | 0

| accepted

Answered
Plot 3rd differential equation
The documentation section on dsolve and Solve Differential Equation describes it better than I can! (It will be necessary to ...

5 years ago | 0

Answered
How to draw line between point and plotted line?
The two plots are different, so using the provided data (and the same Wikipedia article Distance from a point to a line) provide...

5 years ago | 1

| accepted

Answered
In Scatter plot, make the largest data on the top
Since the data are being plotted with scatter3, experiment with the view function to rotate the 3D figure to display it as desir...

5 years ago | 0

Answered
Plotting bode diagram with a transfer function without values
No. How would you plot it without assigning values to any of the varaibles? (It would be possible to symblically derive some...

5 years ago | 0

| accepted

Answered
Control systems failing to plot
The only thing I can think of is to try these: restoredefaultpath % savepath % <— MAY NOT BE NECESSARY rehas...

5 years ago | 0

Answered
How can I define a symbolic function with vector arguments?
A vector has only one dimension (that I am aware of), so I assume ‘x’ needs to be a (3x1) vector. syms x ...

5 years ago | 0

Answered
Solve function has no numerical answer
Try this — lambda0=1.3e-6; L=1500e-6; syms x real A=6.2*10^(-22); B=6*10^(-18); C=lambda0/(2*L); eq=x==((C-A*x)/B)^1.2...

5 years ago | 0

| accepted

Answered
estimate transfer function from power spectrum density
I would not use the PSD for this, since the Fourier transform (fft or pspectrum) are better. If the System Identification Too...

5 years ago | 0

Answered
how to get tf answer for this problem?
Almost. Use the zpk function to do the format transformation. a=[40]; b=[0.05 1]; c=[1]; d=[0.5 1]; e=[0.8]; f=[1 1...

5 years ago | 1

| accepted

Answered
ode45 inside calling funciton error
All the arguments the function needs must be passed to it as additional parameters. See the documentation section on Passing ...

5 years ago | 0

Answered
Copy the text from the command window automatically
The diary function is an option, however if the code is printing to the Command Window, it would likely be easier to print it to...

5 years ago | 0

| accepted

Answered
How to generate?
Try this — x1 = randn(10,1); % Column Vectors y1 = randn(size(x1)); z1 = randn(size(x1...

5 years ago | 1

| accepted

Answered
plot in logarithmic scale
The contourf function plots a plane, not a surface. To plot logarithmic contours of the ‘Z’ matrix, it will be necessary to c...

5 years ago | 0

| accepted

Answered
How to plot an equation with different parameter value?
Try this — x = 0:0.01:+10; c = [1;1.1;1.4;0.3]; Y = (1-x.^2).^c; figure plot(x,Y) legend(compose('c = %.1f',c), 'Locati...

5 years ago | 1

| accepted

Answered
How do you plot RMS of a Colormap?
Depending on the desired result, either use the rms function with the entire matrix (using the (:) convention to force it to be ...

5 years ago | 0

Answered
Excel sheet time data defaulting to January 1st, 1970 on plot
My best guess is that datetime is not interpreting the time column correctly. It would need to be something like this: time...

5 years ago | 1

| accepted

Answered
Calculation of prediction interval for a new observation
The code is not doing a regression, so the ±95% confidence intervals on the vector would be the confidence intervals on the mean...

5 years ago | 0

Answered
How to simply record a string of sound from the computer microphone?
The audiorecorder , recordblocking and audioplayer functions could be helpful. .

5 years ago | 0

Answered
Using temperature and pressure data to estimate antoine coefficients for glycerol
Since both variable are present in the objective function equation, nlinfit (or lsqcurvefit) are not really good choices for thi...

5 years ago | 1

Answered
IIR Filter Coefficant Value
I do not have access to R2010b and I have no idea what application that is. I would design the filter a bit differently, usin...

5 years ago | 0

Answered
How to make circle in matrix form
I am not certain what th desired result is. This is the best I can do — k = 10; M = zeros(k); v = 0:0.2:k-2; x = ceil(...

5 years ago | 0

Answered
how can i create an amplitude sweep?
Try these — t = linspace(0, 10, 500); s = sin(2*pi*t*10); figure subplot(3,1,1) plot(t, s) grid ylim([-10 10]) titl...

5 years ago | 0

| accepted

Answered
Is there a mistake in my code?
I might be better to estimate the parameters directly — x = [2.5 6 9]; % Exce...

5 years ago | 0

| accepted

Answered
Problem adding the large number with small number
The addition is made. It is necessary to display the appropriate precision to see it — a=6.3276e+16 b=17.3304 a_plus_b = ...

5 years ago | 0

| accepted

Answered
fcontour and fplot showing distorted images...
Separate the real and imag parts of the function and it works — syms k a b x e=exp(sym(1)); assume (a>0); %a=6; z(k,a)=(...

5 years ago | 1

| accepted

Answered
How can I determine the medium bias between 2 signals
The question is definitely ambiguous, since the signals themselves are neither displayed nor described. Perhaps subtracting t...

5 years ago | 0

| accepted

Answered
Why do I receive this error when using cumsum: "Invalid data type. First input argument must be numeric or logical." ?
The code (that appears to have been written in 2001) doesn’t make sense! The first argument to the function is ‘file_name’ th...

5 years ago | 0

Load more