Answered
Error when using findpeaks for different limits
The 'MinPeakDistance' value must be less than the number of elements in the vector being used as the first argument to findpeaks...

3 years ago | 0

| accepted

Answered
How to fix ode graphs?
You are telling it to produce two different plots because of two separate figure calls. syms y(x) x Y N=5; r=0.05; m=0.01...

3 years ago | 0

| accepted

Answered
Arrange column vetors into table
You simply need to transpose the row vectors to column vectors. That is best done before creating the table, for example — ...

3 years ago | 0

| accepted

Answered
How can I create a matrice with values over a number of this matrix ?
Perhaps something like this — earthquakes = rand(20,1)*9 % Data (Richter Magnitudes) eq_gt7 = eart...

3 years ago | 0

Answered
Uploaded images are pixelated
JPEG images have problems because of the discrete cosine transform used to encode them. See the Wikipedia section on JPEG compr...

3 years ago | 0

| accepted

Answered
Converting a timestamp into a value that can be plotted
A duration array may woirk, although a datetime array would also work. Perhaps something like one of these — ts = ['11/04/2...

3 years ago | 0

Answered
Find intersection point between two plotted lines
The code I wrote for your previous post, Plot tangent line on part of the curve is designed as requested to have only one inters...

3 years ago | 0

Answered
Plot tangent line on part of the curve
Try this — Data = readmatrix('data_tangent.xlsx') x = Data(:,1); y = Data(:,2); [ymax,idx] = max(y); Binit = x(1:5) \ ...

3 years ago | 0

| accepted

Answered
How to add missing rows in irregularly spaced table as per missing months and years?
I am not certain what you want to do, however the correct approach to dealing with the missiing values is to convert the table t...

3 years ago | 1

| accepted

Answered
How to use the constant e?
Use the exponential function exp(y) to compute e^y. For example:  x = 0.2; Result = (x^2)*exp(4) Result = 2.1839

3 years ago | 17

| accepted

Answered
How to change xticks on a histogram?
There are several ways to do this. Using xticks should work in R2022b — T2 = array2table(rand(100,10)*10); ...

3 years ago | 1

| accepted

Answered
Issue when input to sin(x) is in scientific notation
You are seeing the effects of different precision arguments. format long % Show Detai...

3 years ago | 2

| accepted

Answered
Issues with creating a frequency weighting filter for a iso-standard
I just saw your latest Comment now. The sampling frequency can be anything that you determine to be appropriate for the syste...

3 years ago | 0

Answered
Find crossing points of x and z data
It would help to have the data, and labeling the axes, since it is not obvious what ‘x’ and ‘z’ are. In their absence (and ma...

3 years ago | 0

| accepted

Answered
Sketch the graph using matlab
Use the linspace function to create the ‘x’ vector. Use element-wise operations to calculate ‘y’: y = (x.^3-1)./(sqrt(x) - ...

3 years ago | 0

Answered
Finding slope of a curve at some specific points
Probably the easiest way to calculate the instantaneous slope is: dydx = gradient(y) ./ gradient(x); All that is necessary af...

3 years ago | 5

| accepted

Answered
plotting transfer function / time domain version
I’m assuming here that ‘Q’ is the numerator polynomial and ‘P’ is the denominator poplynomial. (If that is not correct, it is e...

3 years ago | 0

Answered
how to install fractal function in matlab
If it is from the File Exchange, use the Add-On Explorer (in Add-Ons the right-hand region of the top toolstrip in MATLAB) to do...

3 years ago | 0

Answered
How to plot the actual frequency range for the FFT plot?
One approach — %% Signal parameter c = 3e8; % speed of light fc= 10e9; % carrier freque...

3 years ago | 0

Answered
Matlab file to analyse galvanic skin response not working properly
I suspect that there are actually more than 2905 rows in one of the variables (columns), although we do not have the data to ver...

3 years ago | 0

| accepted

Answered
Change values above bar
I am not exactly certain wher eyou want the bar values placed, so it may be necessary to edit the two text calls to create the r...

3 years ago | 0

| accepted

Answered
How do you add a multiplication in the numerator of a transfer function.
Perhaps this — num=5*exp(-1); den=[1 5]; g=tf(num,den) The exponential function here is a constant. If you intend to int...

3 years ago | 0

Answered
Finding random normally distributed number above zero
The truncate function is another option.

3 years ago | 0

Answered
how to find the location of a value
First, determine the value of the first valley, find the approximate index of the desired value, and then use interp1 to calcula...

3 years ago | 0

| accepted

Answered
Why my plot doesn't show up all of it?
All the curves are plotted, however they appear to be overplotted on top of each other. Plotting them using plot3 with an off...

3 years ago | 1

| accepted

Answered
How to Extract/Fit bell curves under a time series...
In order to uniquely identify the peaks and identify their parameters, it is necessary to restrict the range of ‘x’ values for e...

3 years ago | 0

| accepted

Answered
How to save result after run function for different input in matlab
I would just subscript it — subplot(2,2,1) [a{1},r2{1},stee{1}] = linregr(temp,visc) subplot(2,2,2) [a{2},r2{2},stee{2}] = ...

3 years ago | 0

| accepted

Answered
How to do custom equation (non linear) regression?
There are several nonlinear parameter estimation function to choose from. This uses fitnlm — yfcn = @(a,b,x) (a*x.^b)./(26....

3 years ago | 0

| accepted

Answered
How to do spectral estimation of a point process
For time-frequency analyses, I usually use the pspectrum function with the 'spectrogram' option.

3 years ago | 0

Answered
how to find max and min value within a certain range of a plot
Use the bounds function on the specific plot argument.

3 years ago | 0

| accepted

Load more