Answered
3D matrix surface plot animation
Try this — M = rand(10,10,5); % Create Test Matrix figure for k = 1:size(M,3) surf(M(:,:...

5 years ago | 0

| accepted

Answered
How to stack histograms
See my Comment replying to your Comment.

5 years ago | 0

| accepted

Answered
Trimming data with for loop
I am not certain what you want to do. Try this — acq2.data = randi([0 5], 10, 5) % Create Matrix i...

5 years ago | 0

| accepted

Answered
How do i insert seconds in a timeseries data when the frequency of the data is inconsistent?
Try this — Input_data = ['9/5/2021 11:30:00' '9/5/2021 11:30:00' '9/5/2021 11:30:00' ...

5 years ago | 0

| accepted

Answered
4 unknown 4 equetions
syms a b c d eq1=a+b+c+d==-9.3; eq2=(b*a+2)+(2+d*c)+(c+d)*(b+a)==+7; eq3=(b+a)+(d+c)*(b*a+2)+(a+b)*(2+d*c)+(c+d)==-4.507;...

5 years ago | 0

| accepted

Answered
Mann-Kendall test
See if the File Exchange contributions Mann-Kendall Test or Cumulative Mann-Kendall trend test will do what you want.

5 years ago | 0

Answered
How do I plot points on a contour?
I am not certain what result you want. I plotted it with scatter3, however if the intent os to have lines connecting the poin...

5 years ago | 0

| accepted

Answered
Filter function in MATLAB
The instability is generally not a problem with second-order-section realisation of IIR filters. The filtfilt function can oc...

5 years ago | 0

Answered
frequently used function for table variable
I am not certain what ‘T’ looks like. Something like this would work — T = table(randi([-40 40],5,1),'VariableNames',{'OldV...

5 years ago | 0

| accepted

Answered
How to select a specific column in matrices?
Concatenate them, then select the second column of the concatenated matrix — A = randi(9,4) B = randi(9,4) C = randi(9,4) D...

5 years ago | 1

| accepted

Answered
how to edit the axes tick labels?
Some of that can be done by setting the xlim property, the rest by decreasing the width of the axes ysiung the 'Position' proper...

5 years ago | 1

| accepted

Answered
How do I solve two ode (dct/dt and dR/dt) simultaneously with ODE45 and optimize two parameters using global optimization ?
See for one example: Parameter Estimation for a System of Differential Equations and How to properly model a kinetic reaction ...

5 years ago | 0

Answered
Filling the empty array
The code does not assign ‘crave’, ‘dcrave’ or ‘rest’ to anything. What do you want the code to do with those values? In ...

5 years ago | 0

| accepted

Answered
How to retrend data, after detrending it?
There are three different ddetrend funcitons. The one you want is: detrend however it does not return the function it used to d...

5 years ago | 0

Answered
Genetic algorithm options in MATLAB R2013
I do not have access to the R2013x documentation, since it is no longer available online. Are you certain those options are f...

5 years ago | 0

Answered
I can't put the degrees symbol on my chart.
See TickLabelFormat in NumericRuler Properties for a specific example.

5 years ago | 0

Answered
intersection of plane and surface
Use fsurf (or fmesh) and then use the view function to rotate it for best results — pos1 = [1721.983459 6743...

5 years ago | 0

Answered
How can we create poll-like plots with confidence intervals like the example attached?
That would appear to be a scatter plot with mean or median values plotted on it as well (likely using movmean or movmedian), wit...

5 years ago | 0

| accepted

Answered
how to make FIR filter
The documentation on fir1 will demonstrate how to construct it. If you need to check its performance, use the freqz function....

5 years ago | 0

Answered
How to convert encoded digital audio signal to analog form
Everything in a computer is in discrete form. To convert a digital sound file to analog, use the sound or similar functions to ...

5 years ago | 0

Answered
Plot contours using discrete data points
‘Let say i have 100 points so my matrices(X,Y & Z) are 100 x1’ They could be gridded already. If they are, then simply using...

5 years ago | 0

Answered
How do I change the position of the axes permanently?
This is a bit ambiguous. One option is to use the axis function. Another are to set the Axes Properties, specifically XAxi...

5 years ago | 0

Answered
splitting periodic data using cellarray
The actual result depends on the signal (that may need to be filtered if it is noisy), however the code would be something like ...

5 years ago | 0

| accepted

Answered
Element by element multiplication of a matrix
I have absolutely no idea what result you want. Try this — H = [1 2; 3 4]*0.01; t = 0:10:100; for k = 1:numel(t) f...

5 years ago | 0

Answered
Draw rectangle on existing graph
Create an anonymous function ‘rectplot’ (name it whatever you want) to do the calculations and plotting — x = linspace(0, 300,...

5 years ago | 9

| accepted

Answered
non uniformity correction in images
I saw your similar post intensity correction in images that appears to have been responed to. Image processing is not an area...

5 years ago | 0

Answered
Use a custom baseline to calculate area of a graph
Use trapz to calculate the area under the curve, and use trapz separately to calculate the area under the line. Then subtract...

5 years ago | 0

| accepted

Answered
Can you help us to find where the error is coming from in ode45?
Note that these functions all have 3 arguments: mu = @(X,S,P) mumax*S./(Ks + S)*(1- P/Kp)*X; % Monod Equation Rx = @(X,S,P) m...

5 years ago | 0

Answered
Filling inside of a plot with color (gradient)
There are likely several (non-explosive) approaches. One approach — phi = linspace(0,2.*pi,200); g = (1+cos(phi)).*[cos(p...

5 years ago | 1

| accepted

Answered
Create array of values returned from inside an if statement.
Subscript it — ex = [1,2,3,4,3,4,5,4,5,6,7,8,9,7]; for i = 2:length(ex)-1 if ex(i) > ex(i-1) & ex(i) > ex(i+1) ...

5 years ago | 1

| accepted

Load more