Answered
is the FFT right?
‘What is the meaning of the y axis?’ It is necessary to normalise the fft result by the length of the vector it uses as an ar...

5 years ago | 1

| accepted

Answered
Homogeneous differential equation with dsolve => Warning: Unable to find explicit solution.
The differential equation is nonlinear. There are only a few nonlinear differential equations that have analytical solutions. ...

5 years ago | 0

| accepted

Answered
how to draw a quadratic equation
It is definitely close to linear in the region you are plotting it. To plot it and see its quadratic shape, find the inflectio...

5 years ago | 0

Answered
Solving linear system - but using only parts of the Matrix
The lsqr function is appropriate here — D = [... 0 0 0 0 0.345265357599750 0.457309520629080 0.548726230994530 0 0 0 0 0 0 0...

5 years ago | 1

| accepted

Answered
how to plot quadratic equation of 2 variable
One approach — syms x y=(-22916841.3/(2*250))*x.^2+5080.33*x+55 figure fplot(y,[-42 42]) grid .

5 years ago | 0

| accepted

Answered
Intersection between a 3D grid and flight path.
I am not exactly certain what you want. This will give the latitude and longitude grid intersections, computed using linear reg...

5 years ago | 0

Answered
Solving multiple equations through an array
Displaay at all the solutions to understand what solve is doing — P = sym('P', [1 3]); V = sym('V', [1 3]); R_ON = [1 2 3]; ...

5 years ago | 0

| accepted

Answered
How do I multiply Sin and stepseq functions?
I have no idea what you are doing, and I had to look up ‘stepseq’, since I have never heard of it before. Experiment with thi...

5 years ago | 0

Answered
Reading a time column
Here is one approach — Excel_Val = '16:50:13' % Original MATLAB_Val = re...

5 years ago | 0

| accepted

Answered
Best Matlab Editor replacement?
I’m not certain what you’re looking for in an Editor application. Several people on Answers like Notepad++. I downloaded it an...

5 years ago | 1

Answered
Parameter estimation in a system of equation with curve fitting
Just after the declaration of ‘gum’, add — dxdt = zeros((18,1); so — function dxdt = gum(t,X) dxdt = zeros(18,1); ......

5 years ago | 1

| accepted

Answered
How to trim a surface intersecting with another
Try this— n = 50 ; x1 = linspace(1,10,n) ; y1 = linspace(-25,25,n) ; x2 = linspace(1,10,n) ; y2 = linspace(-10,10,n) ; ...

5 years ago | 0

| accepted

Answered
Estimate area inside point cloud
‘I have tried trapz(H,B), what results in a negative solution’ The data are still reliable. The negative solution is the res...

5 years ago | 1

| accepted

Answered
How to plot in 3D a given set of data
I would do something like this — x=[0:700:10800]; y=[0:770:11000]; [Xm,Ym] = ndgrid(x, y); Zm = griddata(x, y, z, Xm, Ym); ...

5 years ago | 1

| accepted

Answered
how plot two figures on same axis with two different origin points
If the x-axis is the same for both curves, while one curve has the origin (I assume this means the 0 value on the y-axis) at dif...

5 years ago | 1

Answered
3D surface plot change origin of axis?
Perhaps — cs = cs - min(cs); Since ‘cs’ is likely a matrix, that will need to be changed to conform to the dimensions of ‘cs’...

5 years ago | 0

Answered
Rebuild PDFs from original data
The is not an option for histfit or the others, however calculating the parameters is straightforward — LD = load('data.mat')...

5 years ago | 0

Answered
Why can't I put the 1x3 matrix into 1x3 variable?
Try this — buf = [1 2 3] buf = num2cell(buf) [a b c] = buf{:} .

5 years ago | 2

Answered
a system of non-linear equations (using fsolve in a loop)
Pass them as extra parameters. See Passing Extra Parameters for details. This appears to work — % Crating Solved Varia...

5 years ago | 0

| accepted

Answered
Trying to plot, no figure comes up
I suspect that the problem is that you simpoly need to call it correctly. The function must be at the end of the file, if it is...

5 years ago | 0

| accepted

Answered
How to determine how much RAM is available?
The memory function is the only option I’m aware of that would come close to providing that information. There are related func...

5 years ago | 0

Answered
How can I use fmisearch() to evaluate the parameters in a matrix?
If the objective is to determine the parameter at a zero-crossing (root), use fsolve or fzero, not fminsearch. Try something ...

5 years ago | 0

| accepted

Answered
How to fix legend error??
Try this — K=1.38065e-23; %Boltzman Constant q=1.602e-19; ...

5 years ago | 0

| accepted

Answered
How to Store Time constant from "damp"
The is relatively easy to calculate — s = tf('s'); H = (s^2 - 2*s - 5) / (s^3 + 5*s^2 - 7*s - 20); damp(H) ...

5 years ago | 0

| accepted

Answered
Cosine of an angle
Experiment with vpasolve, and specifically Specify Ranges of Solutions .

5 years ago | 0

Answered
0.14*100~=14
Not a bug! See Floating-Point Numbers for a detailed discussion.

5 years ago | 1

| accepted

Answered
Format exponent notation: start with 0
I am not certain what you are asking. I wrote a little utility function for my own use a while back to do something like this...

5 years ago | 0

Answered
Getting incorrect plot – curve does not cross the x axis correctly
The roots are [0 2], so use those with the poly function: rts = [0 2]; coefs = poly(rts) figure fplot(@(x) x.^2 - 2.*x, [-5...

5 years ago | 1

| accepted

Answered
How can I split the columns of my text file as separate variables with textscan?
‘I do not want to take headings into account so I tried to use 'commentstyle'.’ The HeaderLines argument would likely be a be...

5 years ago | 0

Answered
Function runs in one script but not another ?
Vectorise its calculation, then call it — conc function[] = conc() v = 0.00001 ; D = 0.0000001 ; t = 86400 ; X = 0 :...

5 years ago | 0

Load more