Answered
How do i find points where slope is zero.
If you want to use the gradient function to find the inflection points, and since you are dealing with finite-precision values, ...

7 years ago | 0

| accepted

Answered
Insert zero in an array when a certain value is exceeded
The vectors do not have the same numbers of elements. Correcting for that: Y= [175 175 175 175 175 175 175 175 175 175 175 ...

7 years ago | 0

Answered
How to user polarplot when theta and rho are matrix?
It depends what they are. Using pol2cart and then plotting them using a Cartesian plot is an option, although you would have to...

7 years ago | 0

Answered
how to plot f (x,y) at x=1
See if this does what you want: y = ...; % Choose A Vector fy = f(1,y); figure plot(y,...

7 years ago | 0

| accepted

Answered
How do I make a 21x21 array from the center of a 200x150 array?
I called your image ‘parrot grayscale.png’. I = imread('parrot grayscale.png'); [r,c] = size(I); sr = fix((r-21)/2); sc = ...

7 years ago | 0

Answered
how can I fit the following points to equation "f(x) = a + b*exp(-c*x)"
Try this: x = [30, 60, 90, 120, 150, 180, 240, 270, 300, 330, 360, 390, 420]; y = [333.15, 332.15, 330.65, 330.15, 329.15, 32...

7 years ago | 0

| accepted

Answered
Remove noise from EMG signal
Those are actually sampling artifacts, not parts of the EMG signal. Probably the best way to deal with them is to use findpeaks...

7 years ago | 1

| accepted

Answered
Why, Array indices must be positive integers or logical values
It is saying that because ‘r’ is not an integer, and even if it was, there are only some instances in which ‘r/12’ would be an i...

7 years ago | 2

Answered
Segmentation of a signal 184148x1
See if the buffer function will do what you want.

7 years ago | 1

Answered
Why do i get this error? can you explain it to me please
You have a script that you named ‘image’: C:\Users\WASD\Documents\MATLAB\image.m That is the problem. The solution is to ren...

7 years ago | 1

Answered
Adding two matrix together
Try this: A = rand(1,30); % Create Vector B = [zeros(1,30) rand(1,30)]; ...

7 years ago | 1

| accepted

Answered
Use fprintf for data from a table
Try this: M = [3 7 2005 30 1 4 2005 35 1 5 2005 24 2 6 2005 25]; MDate = datetime(M(:,3),M(:,2),M(:,1)); ...

7 years ago | 1

| accepted

Answered
What is wrong with this code?
You forgot to use element-wise division ... P = - ( (0.2*0.5)./Vf).*( (1 - sqrt(Vf/0.5))./( (16/pi^3)*(200^2/181e9).*sqrt(0.85....

7 years ago | 0

| accepted

Answered
Legend function does not work in R2019b
It was pointed out recently in another Question with a problem similar to yours that: opengl software is likely the appropria...

7 years ago | 1

| accepted

Answered
how to plot percentage?
Use the 'Normalization','probability' name-value pair argument in your histogram call.

7 years ago | 0

| accepted

Answered
Finding frequency and duration of an audio signal
You specified it to be 1 kHz, and 1 second duration, so it is just that: fs=24000.0; % Sampling rate t=0:1/fs:1; % One sampl...

7 years ago | 1

| accepted

Answered
Solving system of equations for different combinations of symbolic variables
I am not certain what result you want. Try this: syms x y A = sym('x',[3,1]); C = sym('y',[3,1]); A(1) = 3; A(3) = 4; ...

7 years ago | 0

Answered
Shade Area Between 2 Tabulated Plots.
This is as close as I can get: Y_Values = readtable(UserDir,'Sheet',SheetNameA,'Range','A2:A150','ReadVariableNames',0); X_Va...

7 years ago | 1

| accepted

Answered
Find delta 99 of the boundary layer
See if the findchangepts or ischange functions will do what you want. You may need to invert them (plot y vs Ux) for them to wo...

7 years ago | 1

| accepted

Answered
Solving an nonlinear equation
See if the Optimization Toolbox fsolve function can do what you want.

7 years ago | 0

Answered
textscan not reading all rows.
Without having your text file, it is not possible to provide specific code to read it. However, it is possilbe that that there ...

7 years ago | 0

Answered
Speech processing. voice signal
See if the buffer function will do what you want.

7 years 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’.

7 years 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...

7 years 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.

7 years ago | 2

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...

7 years 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...

7 years 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...

7 years ago | 0

Answered
Damped harmonic motion curve fit
Try this: D = load('Stashu Kozlowski DHM.mat'); % File Attached x = D.x; y = D.y; ...

7 years ago | 3

| 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 ...

7 years ago | 0

Load more