how to model kinetic reaction system
There are several examples on fitting differential equations to data in Answers. See: ODE and Data fitting and Parameter Estima...

5 days ago | 0

| accepted

Applying sgolay filter (derivatives) on data with variable Fs
Every signal processing technique that I am aware of (except the newly-introduced nufft function) requires uniformly-sampled sig...

6 days ago | 0

System of nonliner equations with symbolic variables
The code needs a few adjustments: syms lamT lamZ eqT = 10*lamT^13*lamZ^13 - 10/lamT^13 - 10*lamT^2*lamZ; eqZ = 10*lamT^13*l...

6 days ago | 0

| accepted

Is it possible to save a workspace when a program is paused without it ending the program?
Using the save function at appropriate places in the code will not cause the code to crash. See: How to save data from Geneti...

6 days ago | 0

'LSQCURVEFIT requires all values returned by functions to be of data type double' error
It took a bit of effort to figure out what you are doing, and get your code to run correctly, although it still needs for you to...

6 days ago | 0

| accepted

How to plot a symbolic equation
Using piecewise (R2016b and later versions) may be an option.

7 days ago | 1

| accepted

summation of 2 Sine waves
It does show a straight line at zero. Look at the magnitude of the y-axis (±2E-15), and you will see that it is essentially plo...

7 days ago | 0

| accepted

How can I create this image?
Try this: [X1,Y1,Z1] = cylinder; X2 = bsxfun(@times, X1, [1.2; 0]); Y2 = bsxfun(@times, Y1, [1.2; 0]); figure Ax = gca; ...

7 days ago | 0

| accepted

Sampling Audio at 11025 sample/sec in MATLAB
See: Record and Play Audio for a full description of the process. Note that SampleRate defines the sampling frequency.

7 days ago | 0

| accepted

I'm unable to derive a function with decimals
Use the vpa function: vpa(diff(Y)) .

8 days ago | 0

| accepted

Find missing dates from a file
Try this: fidi = fopen('Dates.txt'); D = textscan(fidi, '%{dd/MM/yyyy}D') fclose(fidi); AllDates = (D{1}(1):caldays(1):D{1}...

8 days ago | 0

| accepted

Help with some fft problems, can't come up with a better title
You need to force the index arguments to be integers. One option: plot(Y(1:fix(length(Y)/2))); There are others, dependin...

8 days ago | 0

How can I change the radius of the spiral so it varies along the length from 0 to 1?
Change ‘x’ and ‘z’ to: x=cos(y/100*10*pi).*(y/100); z=sin(y/100*10*pi).*(y/100); so the full code siis now: y=0:0.5:100; ...

9 days ago | 0

| accepted

How to get spectrogram of an array in MATLAB?
The documentation states that the input signal is ‘specified as a row or column vector’, so you would need to loop through each ...

9 days ago | 0

| accepted

Why can't I automatically get an integer from this simple function?
You have encountered floating-point approximation error. See Floating-Point Numbers for an extended discussion. The differen...

9 days ago | 0

| accepted

How can I find integral of a 3-D mesh field?
See if using trapz on one or both dimensions of your matrix will do what you want.

9 days ago | 0

Executing a multiple plot graph
Change to: plot(x, -1.2e8*a/25*x + 1.2e8*a) and it should work.

9 days ago | 0

| accepted

Troubles with Butterworth Bandpass filter
My expertise in this area stops with the filters and thier implementations. An appropriate time vector: Fs = 1000; L = num...

9 days ago | 0

i want to solve this equation
See if this does what you want: a = sum((x - mean(x)).*y) / sum((x - mean(x)).^2); .

9 days ago | 0

Area in 3-D temperature plot
Apparently, the contour3 call plots temperature contours as a function of longitude and depth. You can specify the levels at wh...

9 days ago | 0

| accepted

Why is there an offset in my butterworth and cheby filters when they have the same values?
There is not really much difference. It is necessary to get the matching frequency vector (‘wh’ and ‘wc’ here) from the freqs f...

10 days ago | 0

Fast Fourier Transform with discrete data
I suspect the first column of ‘data’ is a time vector and the second column is the signal vector. If that is correct, try thi...

10 days ago | 0

| accepted

how to use lsim
The lsim function will work to get the step response of a system, however the step function is particularly designed to do this....

11 days ago | 1

| accepted

Butterworth filter: Number of coefficients?
The first argument to butter is the filter order, and the number of coefficients in the transfer function vectors will be 1 les...

11 days ago | 0

| accepted

How to I plot Laplace transfer function characteristics using the symbolic toolbox?
Here, ‘s’ needs to be complex: syms s; H = 1/(0.001*1j*s+1); figure; fplot(20*log10(abs(H)), [0 100000]); % set(gca, 'XScal...

11 days ago | 1

| accepted

i want to use the function intersect with repetition in the results
The ismember function may be an option.

11 days ago | 0

Accelerometer Filtering Causes Ripple
‘P.s. @StarStrider you seem to be the guru for this so i hope you see it!’ I’m, a physician and biomedical engineer, so I’ve de...

11 days ago | 0

Use the Signal Processing Toolbox resample function. The advantage it offers over simply interpolating is that it uses an anti-...

11 days ago | 1

| accepted

Distributing a cell array into another
Adding end spaces to each character array in ‘A’ and converting them to string arrays: A = {'Category1 ', 'Category2 '}; B = ...

11 days ago | 0

| accepted