Answered
Could anyone help me how to find the correlation between the time series data
Hi, You can make use of the "corr" function to get a linear correlation coefficient between the data. You can extract the time ...

5 months ago | 0

Answered
Help me to draw a pie chart with separate pieces
Hi, You can pass an array to the "pie" function, where each element corresponds to the pie chart pieces. A value of 1 would mea...

5 months ago | 0

Answered
how can I detect and fill gapes in data
Hi, You can fill in the missing data by using the "fillmissing" function with the 'linear' method to interpolate missing values...

5 months ago | 0

Answered
How to set specific colors in margin of errorbars line?
Hi, You can achieve a red line with a black margin effect by plotting the error bars and the main line separately and then cus...

5 months ago | 0

Answered
Excluding data not of a classes from a KNN classifier
Hi, To detect data that is too dissimilar from any of the trained classes in your KNN classifier, you can compute the distances...

6 months ago | 0

Answered
How to merge local maxima based on distance apart
Hi, To merge local maxima that are less than a certain distance apart in an image, you can use the "pdist" function to compute ...

6 months ago | 0

Answered
How to insert dash-line in a matlab figure?
Hi, To add a horizontal dash line in a figure, you can use the "yline" function. This function will help you in drawing horizon...

6 months ago | 0

Answered
Find the linear Equation at different conditions - Machine Learning
Hi, To generate a linear equation for a specific flow rate using the given data table, you can interpolate between the known fl...

6 months ago | 0

Answered
How to calculate the volume of object that has several 2D profiles (slices)
Hi, Assuming that the slices are equally spaced and represent cross-sections of the object, you can approximate the volume by s...

6 months ago | 0

Answered
how to add multiple functions in a single Simulink MATLAB function file?
Hi, You can make use of the MATLAB function block in Simulink. Refer to the below steps for a better understanding: Create a b...

6 months ago | 0

Answered
How to draw phase space of two ODEs
Hi, To recreate the phase space for the system described in the above equations, you can use the "ode45" function. This will he...

6 months ago | 0

Answered
Save animation from PDE modeler
Hi, As a work around to save animation from the PDE modeler, you can capture frames during the simulation and then write them i...

6 months ago | 0

Answered
Real time data acquisition
Hi, To provide MATLAB script real-time data, you can use the "serialport" function to create a connection to the serial device....

7 months ago | 0

Answered
How to get nonlinear function using bode plots data (gain vs. freq and phase vs. freq)
Hi, In order to find the non-linear expression that describes the behaviour of the given system, I have made use of curve fitti...

7 months ago | 0

Answered
How to generate M sets of a time serie?
Hi, To simulate data for (M=5000) sets of time series based on the given equation, follow the steps below. In the example given...

7 months ago | 0

Answered
Can I set the maximum displacement for opticalflow?
Hi, You can follow the below steps as a workaround to set the maximum displacement for the optical flow: Find the horizontal a...

7 months ago | 0

Answered
How to use events in fminsearch
Hi, One workaround you can try to integrate the use of an event function within "fminsearch" while solving an ODE using "ode45"...

8 months ago | 0

Answered
How do I plot the Hamiltonian (phase plot) of a 2d system
Hi, It seems you want to plot 2D arrays, where (p) and (q) are both two-dimensional arrays of size (2, N), implying you have tw...

8 months ago | 0

Answered
What does the space on the resultant graph mean?
Hi, As per my understanding, if I consider the "space" axis to be the dimension of the plate, then it represents your plate le...

8 months ago | 0

Answered
How to reduce features using PCA and get good result on Pattern recognition ?
Hi, It seems that you are having trouble applying for PCA in your current implementation. You can follow the below steps: Scal...

8 months ago | 0

Answered
Newton Raphson method for system of nonlinear equations
Hi, It seems that your output tolerance is not under the specified "tolX". To improve this, you can use a "norm" (like the Euc...

8 months ago | 0

Answered
Creating a profile using a mathematical function f(x,y)
Hi, As per my understanding, you can create a specific profile of pressure and flow using the "MATLAB Function" block in Simuli...

8 months ago | 0

Answered
How con I regularize a partial correlation network graph with LASSO?
Hi, You can make use of the "lasso" function as a workaround. The "lasso" function is used for the linear models; for editing g...

9 months ago | 0

Answered
Size of Checkerboard Target in camera image
Hi, It seems you are a bit confused about how the size of the checkerboard in the image affects the end result. Checkerboard si...

9 months ago | 0

Answered
Does someone have tips on how to improve chessboard recognition in the camera calibration?
Hi, As per my understanding, you are facing an issue in detecting the checker pattern of a chessboard for the camera calibratio...

9 months ago | 0

Answered
Generate magnitude and phase spectra of the modulated and demodulated signal using power spectral density using MATLAB.
Hi, It seems you want to generate magnitude and phase spectra of the modulated and demodulated signal using power spectral den...

9 months ago | 0

Answered
ELECTROMECHANICAL EFFECT OF PIEZOELECTRIC CANTILEVER BEAM
Hi, It seems you are trying to study the electromechanical effect on a piezoelectric cantilever beam by plotting a graph such a...

10 months ago | 0

Answered
Temperature compensation for Electro-chemical Air Sensors
Hi, It seems you are trying to compare the output value from the sensor against reference data, observing both the temperature ...

10 months ago | 0

Answered
how i can to create plastic collsion
Hi, It seems you are trying to make changes in the given code to simulate a plastic collision and add an option to give a solut...

10 months ago | 0

Answered
how to draw gaussian curve
Hi, It seems you are trying to make use of FULL WIDTH AND HALF MAXIMUM (FWHM) and wavelength values to obtain a Gaussian curve....

10 months ago | 0

Load more