Answered
How to filter noise from the following time series data?
The noise is broadband, so any frequency-selective filter will not work to eliminate the noise. The best options are either w...

4 years ago | 0

| accepted

Answered
Indexing a timetable using time
One option may be findgroups — DateTime = (datetime('2022-02-12') : minutes(30) : datetime('2022-02-18')).'; Universo_MidPric...

4 years ago | 0

| accepted

Answered
Solve an equation not getting a result
The solve call was causing problems because the conversion and testing in the if block would then not work correctly because the...

4 years ago | 0

Answered
Plotting Reflection Coefficient as a function of frequency
I am not familiar with these equations. However, calculating the deicbel conversion only on the real part of ‘reflection_coeff’...

4 years ago | 1

Answered
why is the zpk function not producing the transfer function in MATLAB?
Remove the closing parentheses in the ‘G’ assignment to see the result as a sort of ‘prettyprint’ output: a = [2,5,9,5,3]; b ...

4 years ago | 0

| accepted

Answered
How to calculate p value after using fminsearch
Using fminsearch it will be necessary to create your own covariance matrix (for the confidence interval calculations) and analys...

4 years ago | 0

| accepted

Answered
MATLAB cannot plot LinearModel: "Unable to perform assignment because dot indexing is not supported for variables of this type."
I have no idea what the rest of your code looks like, however I have no problem plotting it: This code: LD = load('alpha_App...

4 years ago | 0

| accepted

Answered
How can I write and solve this equation? as a function??
Possibly, after first providing values for the constants: T(z,z0,Tz0,Tinf) = Tinf - (Tinf - Tz0).*exp(z-z0); % Fu...

4 years ago | 0

| accepted

Answered
Error: Operator '-' is not supported for operands of type 'function_handle'.
To be used in calculations, functions must be evaluated, and that means providing them with an argument. See if this provides...

4 years ago | 1

| accepted

Answered
Calculate duration of Peaks using findpeaks function
Try something like this — t = linspace(0, 24*30-1, 2*30); % Simulate Time wv = 2 + sin(2*pi...

4 years ago | 0

| accepted

Answered
how to take monthly mean of hourly data set ?
The groupsummary function could be helpful here. See Grouped Calculations in Tables and Timetables for a detailed discussion. ...

4 years ago | 0

Answered
Interpolated phase data will not unwrap
The arguments to the interp1 call are incorrect. The first two should be reversed, since the interpolation is over frequency. ...

4 years ago | 0

| accepted

Answered
Problem with saving a Matlab file
Always supply the .mat extension yourself. MATLAB has no way of knowing otherwise, and assumes that what you assume is a file n...

4 years ago | 0

Answered
Find the minimum of a function on a plot and where it occurs on the x-axis
If the plot is of data and not of funciton evaluations, the min function could be useful.

4 years ago | 1

Answered
How to create a closed surface cylinder using patch function?
Try this — %% Cylinder [l,m,n]=cylinder; figure() surf(l,m,n) hold on patch(l(1,:),m(1,:),n(1,:),'r') patch(l(2,:),m(2...

4 years ago | 1

| accepted

Answered
Averaging hourly time series data to daily time series
Try this — T1 = readtable('Chris Martin_2022_02_09.txt') T1.Var1 = datetime(T1.Var1, 'InputFormat','yyyy-MM-dd''T''HH:mm:ss''...

4 years ago | 0

| accepted

Answered
How to display FWHM in the graph
Try this — format longEng A = readmatrix('https://www.mathworks.com/matlabcentral/answers/uploaded_files/888835/test.txt') ...

4 years ago | 0

| accepted

Answered
Obtain value of a variable when y = 0 in a function
One option is to add a test for the value of ‘y’ as I did here. V0 = 420; b0 = 60; C = pi; u = 50; %Data inputs fprint...

4 years ago | 0

| accepted

Answered
Error graphing a VVF
The ‘z’ function needs to be defined as symbolic. Without that provision, fplot3 sees it as a double, not a symbolic constant (...

4 years ago | 0

| accepted

Answered
How do I add legends to my plot?
There are apparently two lines for every channel. There are two options: The first is to simply plot the first row rather tha...

4 years ago | 1

| accepted

Answered
Im trying to find the zeroes of the two lines on the graphs I've made
Another approach — n = 32; S = 23.45*sind(360*(284 + n)/365); phi = 38.9072; tsol = 0:1/60:24; w = 15*(tsol-12); Gsc = 13...

4 years ago | 1

| accepted

Answered
Plot function only plots one coordinate
MATLAB does not use C increment syntax. One approach would be to subscript them and plot them at the end. That is definitely...

4 years ago | 1

| accepted

Answered
how to make an image disappear?
In the documentation on Image Properties, see the Visible property. For the delay, see if the pause function will do what you...

4 years ago | 0

| accepted

Answered
How to set x-ticks and y-ticks for the Raman image?
Try this — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/887625/Raman%20Intensity%20Ratio.xls...

4 years ago | 1

| accepted

Answered
Solving a set of differential equations for a packed bed reactor - chemical reaction engineering
I did not run the code, however the problem is likely that using ‘var’ as a variable name is overshadowing the var (variance) fu...

4 years ago | 0

| accepted

Answered
ODE45 change the value of a parameter at each time step
Try something like this — tspan = 0:0.1:1; values = [0.6 0.8 0.9 1.4 2.5 0.6 0.7 0.8 0.9 1 2.3]; beta = 0.1; x_0 = 0; x_0_...

4 years ago | 0

Answered
best fit curve using linear regression
Here is the stepwiselm result — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/886775/Concre...

4 years ago | 0

| accepted

Answered
contour lines on the surface plot
Try something like this — [X,Y,Z] = peaks(50); % Example Surface figure surf(X,Y,Z,...

4 years ago | 1

| accepted

Answered
Color certain area of normal distribution
Try this — x = linspace(4, 7, 250)*1E4; y = @(x) normpdf(x,57565.67,1743.56); y1 = @(x) normpdf(x,54908.02,1663.82); xp =...

4 years ago | 0

| accepted

Answered
how to have step time in specific time
Use the lsimplot function. There is a specific example in Custom Plot of System Evolution from Initial Condition. It describ...

4 years ago | 0

Load more