Answered

Speech processing. voice signal

See if the buffer function will do what you want.

Speech processing. voice signal

See if the buffer function will do what you want.

5 jours ago | 0

Answered

Can not run function, written wrong?

The order is reversed. The ‘x’ variable needs to be assigned before calculating ‘y’, since ‘y’ depends on ‘x’.

Can not run function, written wrong?

The order is reversed. The ‘x’ variable needs to be assigned before calculating ‘y’, since ‘y’ depends on ‘x’.

5 jours ago | 0

| accepted

Answered

Parameter fit differential equation to dataset

I have discussed this several times over the years. See for example Monod kinetics and curve fitting and Parameter Estimation f...

Parameter fit differential equation to dataset

I have discussed this several times over the years. See for example Monod kinetics and curve fitting and Parameter Estimation f...

5 jours ago | 0

| accepted

Answered

How can I rearrange a table with different types of data?

See if the unstack function will do what you want.

How can I rearrange a table with different types of data?

See if the unstack function will do what you want.

5 jours ago | 1

Answered

I need help to modify my optimization code

Note that in the ‘% Parameters’ section, you are creating new random numbers in every call to ‘objective_function’. The optim...

I need help to modify my optimization code

Note that in the ‘% Parameters’ section, you are creating new random numbers in every call to ‘objective_function’. The optim...

6 jours ago | 0

| accepted

Answered

How to convert XLim day data to monthly?

Since you’re using datetime arrays, using the xtickformat function and specifically using 'MM' or 'MMM' as described in the date...

How to convert XLim day data to monthly?

Since you’re using datetime arrays, using the xtickformat function and specifically using 'MM' or 'MMM' as described in the date...

6 jours ago | 1

Answered

how do i spread ticks evenly on a plot?

That is plotted as a loglog plot. Either just use plot, or: set(gca, 'XScale','linear', 'YScale','linear') For that partic...

how do i spread ticks evenly on a plot?

That is plotted as a loglog plot. Either just use plot, or: set(gca, 'XScale','linear', 'YScale','linear') For that partic...

6 jours ago | 0

Answered

Damped harmonic motion curve fit

Try this: D = load('Stashu Kozlowski DHM.mat'); % File Attached x = D.x; y = D.y; ...

Damped harmonic motion curve fit

Try this: D = load('Stashu Kozlowski DHM.mat'); % File Attached x = D.x; y = D.y; ...

6 jours ago | 1

| accepted

Answered

How to show nearest value of a separate function with known x and y inputs

It seems to me that you are attempting to invert your data, that is calculating an ‘x’ value from a ‘y’ value. The easiest way ...

How to show nearest value of a separate function with known x and y inputs

It seems to me that you are attempting to invert your data, that is calculating an ‘x’ value from a ‘y’ value. The easiest way ...

6 jours ago | 0

Answered

I am trying to write formulas involving specific values from the table by quoting specific row and column names

You appear to have imported the file correctly with readtable. All readtable is telling you in the Warning is that it had to cr...

I am trying to write formulas involving specific values from the table by quoting specific row and column names

You appear to have imported the file correctly with readtable. All readtable is telling you in the Warning is that it had to cr...

6 jours ago | 0

Answered

How to change the ylim for all histogram figures after a for loop?

I can’t run your code (no data), so I simulated it. This seems to work: for k = 1:12 figure(k) H = histogram(rand...

How to change the ylim for all histogram figures after a for loop?

I can’t run your code (no data), so I simulated it. This seems to work: for k = 1:12 figure(k) H = histogram(rand...

6 jours ago | 0

| accepted

Answered

Finding average step size and slope with ode45

Subscript ‘dT’ as well. The code will be more efficient if you move the plot outside the loop: t = [0, 5]; % time span y0...

Finding average step size and slope with ode45

Subscript ‘dT’ as well. The code will be more efficient if you move the plot outside the loop: t = [0, 5]; % time span y0...

6 jours ago | 0

| accepted

Answered

How to save ode45 outputs in a loop?

The easiest way would be to save them as cella rrays, then sort those out later: for j = 1:7 [T{j},Y{j}] = ode45(dydt, t,...

How to save ode45 outputs in a loop?

The easiest way would be to save them as cella rrays, then sort those out later: for j = 1:7 [T{j},Y{j}] = ode45(dydt, t,...

6 jours ago | 0

| accepted

Answered

Genetic Algorithm chart convergency

It does converge to the best fitness value. The ga algorithm will keep searching for the best fitness value until it reaches wh...

Genetic Algorithm chart convergency

It does converge to the best fitness value. The ga algorithm will keep searching for the best fitness value until it reaches wh...

6 jours ago | 0

| accepted

Answered

Laplace of Constant a

You must tell the laplace function what the independent variable and transformation variable are. It has no way of knowing, oth...

Laplace of Constant a

You must tell the laplace function what the independent variable and transformation variable are. It has no way of knowing, oth...

7 jours ago | 1

| accepted

Answered

How can I design flat magnitude response IIR filter ?

I am not certain what you want the filter to do. One option is to design a lowpass filter with a cutoff near the Nyquist freque...

How can I design flat magnitude response IIR filter ?

I am not certain what you want the filter to do. One option is to design a lowpass filter with a cutoff near the Nyquist freque...

7 jours ago | 0

Answered

Missing plot line and legend mismatch

Note that ‘By’ is a scalar, so it actually will not appear on the plot (unless you plot it with a marker). They will all plot a...

Missing plot line and legend mismatch

Note that ‘By’ is a scalar, so it actually will not appear on the plot (unless you plot it with a marker). They will all plot a...

7 jours ago | 0

Answered

Using rows of matrix as elements in a new matrix.

Try this: M = [1:12; rand(1,12)]; % Original Matrix n = 50; xnew = linspace(min(...

Using rows of matrix as elements in a new matrix.

Try this: M = [1:12; rand(1,12)]; % Original Matrix n = 50; xnew = linspace(min(...

7 jours ago | 0

Answered

Polyfit not showing a curve

You aren’t finished evaluating the fit. You need to use polyval to evaluate it. Try this: % store coordinates x = [5.2 5....

Polyfit not showing a curve

You aren’t finished evaluating the fit. You need to use polyval to evaluate it. Try this: % store coordinates x = [5.2 5....

7 jours ago | 0

| accepted

Answered

discrete low pass in an array

You willl first need to use the resample function to create uniform sampling intervals for your data. Then there are any number...

discrete low pass in an array

You willl first need to use the resample function to create uniform sampling intervals for your data. Then there are any number...

8 jours ago | 1

Answered

Interp1 returns NaN for a value

You could have NaN values in your data. If so, first use the fillmissing function (R2016b and later reseases), then interp1.

Interp1 returns NaN for a value

You could have NaN values in your data. If so, first use the fillmissing function (R2016b and later reseases), then interp1.

8 jours ago | 0

Answered

Fourier Series Expansion Graph Help

If you want to plot them beginning at 0, remember to tell fplot: figure fplot(s,[0 L]) hold on fplot(f,[0 L]) That will s...

Fourier Series Expansion Graph Help

If you want to plot them beginning at 0, remember to tell fplot: figure fplot(s,[0 L]) hold on fplot(f,[0 L]) That will s...

8 jours ago | 0

| accepted

Answered

problem while using 'intersect' between strings

The letter ‘l’ appears twice in both strings, so is only returned once in the intersect result. Yopu will get a similar resul...

problem while using 'intersect' between strings

The letter ‘l’ appears twice in both strings, so is only returned once in the intersect result. Yopu will get a similar resul...

8 jours ago | 0

| accepted

Answered

How to change the legend color?

First, create a handle to the legend object, then change whatever properties you want using the options in Legend Properties. ...

How to change the legend color?

First, create a handle to the legend object, then change whatever properties you want using the options in Legend Properties. ...

8 jours ago | 0

| accepted

Answered

I need help with this

See the documentation section on Data Import and Export and Data Import and Analysis.

I need help with this

See the documentation section on Data Import and Export and Data Import and Analysis.

8 jours ago | 1

Answered

"Busy" in command window, doesn't respond

This occurs with large data sets, infinite loops, or slowly-converging optimizations. The first option is to use CRTL+C to in...

"Busy" in command window, doesn't respond

This occurs with large data sets, infinite loops, or slowly-converging optimizations. The first option is to use CRTL+C to in...

8 jours ago | 0

Answered

How to use ode45 on a second-order ODE, but without a function file (just one script)?

You are almost there! Try this: dydt = @(t,y) [y(2); eps*((y(1)^2) - 1)*y(2) - y(1)]; ic = [1 1]*eps; tspan = [0 10]; ...

How to use ode45 on a second-order ODE, but without a function file (just one script)?

You are almost there! Try this: dydt = @(t,y) [y(2); eps*((y(1)^2) - 1)*y(2) - y(1)]; ic = [1 1]*eps; tspan = [0 10]; ...

8 jours ago | 0

| accepted

Answered

Finding change in a large dataset

The ischange function needs to be told what you want it to do. D = load('Kdata.mat'); y = D.rel_P_set_200; x = 1:numel(y); ...

Finding change in a large dataset

The ischange function needs to be told what you want it to do. D = load('Kdata.mat'); y = D.rel_P_set_200; x = 1:numel(y); ...

8 jours ago | 0

Answered

How do I make gaps in missing data plot lines?

It would be easier with your data. One option is to fill the missing entries with NaN values: x = [1:10 15:20]; ...

How do I make gaps in missing data plot lines?

It would be easier with your data. One option is to fill the missing entries with NaN values: x = [1:10 15:20]; ...

9 jours ago | 0

| accepted

Answered

How can plot individual mode shapes of a cantilever beam with a tip mass?

You need to use element-wise operations (.* for element-wise multiplication instead of * that is used for matrix multiplication)...

How can plot individual mode shapes of a cantilever beam with a tip mass?

You need to use element-wise operations (.* for element-wise multiplication instead of * that is used for matrix multiplication)...

9 jours ago | 1