Answered
not a polynomial error
Hi @Ajira, It is correct that when eigenvalues contain a square root term, the resulting expression is no longer a polynomial. ...

6 months ago | 0

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 7-by-1.
Hi @KYRIAKI TYCHOLA, Assuming that it is desired that the function ‘net’ returns a 7-by-1 array, there are several ways to ass...

6 months ago | 0

Answered
overlay 2 histograms one over the other
Hi @sani, To present the sets one over the other as they are in real datasets, the bin edges need to be aligned. So, we can us...

7 months ago | 0

Answered
Frequency plot for extreme value analysis
Hi @Ali Saremi, To create the frequency plot, we can start by using `readtable` to read the CSV file as follows: data = read...

7 months ago | 0

Answered
Looping through array to assign values to titles
Hi @Bas Bloemendaal, To plot lines for each value in the‘lateral’array corresponding to each value of‘U_det’, you should exec...

7 months ago | 0

Answered
Change dimension of matrices in a cell variable
Hi @JINGYU KANG, To convert an existing ‘a x b x c’ cell array containing ‘dx1’ matrices into an ’a x d’ cell array, you can f...

7 months ago | 0

Answered
How to count pixels overlapping between two images?
Hi @Cathy Marlair, Firstly, we can read the images using the `imread` function as shown below: image1 = imread(image1.png');...

7 months ago | 0

Answered
plot and illustrate the intersection
Hi @Nguyen Huy Hoang, To plot the surface “z = x^2 - 2y^2”, the surf command can be utilized as follows: surf(x, y, z, 'Edg...

7 months ago | 0

Answered
3D Histogram of a true color (RGB) image
Hi @Abdul Gaffar, To plot a 3D histogram of a true colour image, try the following steps: 1. Convert it to a grayscale image...

8 months ago | 0

Answered
Provide a row vector as legend
Hi @Pedro Oliveira, To assign the values of a row vector as a legend, each element must be converted into a string. This can b...

8 months ago | 0

Answered
Trying to only fill certain contours in a contour3 plot
Hi @Nicholas Backhouse, To fill a specific colour between only two contours while leaving the others unfilled, specific contou...

8 months ago | 0

Answered
cannot save figure from simulink
Hi @praween bhengra, To save a plot generated using the ‘Scope’ block in a Simulink model, certain properties of the Scope blo...

8 months ago | 0

Answered
heatmap cannot have Axes or uiaxes as parent
Hi @Alexandru Bitca, As per the documentation, it is not possible to place a heatmap inside a UIAxes.However, a similar workflo...

8 months ago | 0

Answered
Is there a way to write legends in small caps?
Hi @sudip poudel, To display legends in small caps within MATLAB figure, try the following workaround: Use the “upper” functi...

8 months ago | 0

Answered
multiple plots with same variable but different value
Hi @EIMAN HAZIQ, To plot multiple graphs of the same variable, which contains different values according to the equation: T(...

8 months ago | 0

Answered
show regular intervals in the colourbar
Hi @Francesco Marchione, To calculate a fixed number of evenly distributed values between the minimum and maximum, including t...

8 months ago | 0

Answered
plot range of freq on unit circle
Hi @uzmeed, To plot frequencies ranging from 10 kHz to 1 MHz on a unit circle, we can follow the below approach. Assuming the t...

8 months ago | 0

Answered
plot the graph of mulivariable
Hi @shiv gaur, Upon reviewing your code, I noticed that the expression for p should be written as p = (dy ./ dx) ./ (dy ./ d...

8 months ago | 0

Answered
Covert surf 3D image to 2D matrix
Hi @Haomin Wang, To save an image into a new 2D projection, the “saveas” function can be used. Additionally, to extract z-value...

8 months ago | 0

Answered
PLEASE HELP!! Matlab AppDesigner Putting a certain number of panels
Hi @hgrlk & @Georgiana Cristea, Assuming that the desired output should have the panels stacked on top of each other, you can ...

8 months ago | 0

Answered
Add plot to an existing surface
Hi @Giuseppe Giaquinta, To add a 3D line to a plot that features a surface generated using the Curve Fitting Tool in MATLAB, t...

8 months ago | 0

| accepted

Answered
how to find the location of optical flow (head) vector?
Hi @zunash ahmad, To determine the location of an optical flow vector, you can calculate the optical flow between two consecut...

8 months ago | 0

Answered
How to solve boundary value problem using shooting method (ode45)?
Hi @Rajesh, I've observed that the line responsible for checking the right endpoint boundary condition might not be implemente...

8 months ago | 0

Answered
ANOVA of a cell array
Hi @car, To perform a one-way ANOVA on all the data contained within the cells of a cell array and obtain a single output that ...

8 months ago | 0

Answered
How to compute displacement vector field?
Hi @zafar iqbal, To compute the displacement vector field (DVF) for image registration in MATLAB, you can use the Image Proces...

8 months ago | 0

Answered
Changing the Number of Rows in imported Table via Edit-Field in App Designer
Hi @William Collants, To make the Numeric Edit Field interactive, we need to add a callback function. The desired functionalit...

8 months ago | 0

Answered
How to plot an integral function(x) with limits as 10 and x.
Hi @Mohammad Kaif, Upon reviewing the code, I identified the issue: one of the limits of the “integral” function is being passe...

8 months ago | 0

Answered
How to increase margin when export graphics-Illegal option 'padding' given
Hi @Huei-Ting, The “Padding” attribute of the “exportgraphics” function is supported in MATLAB Online R2024a and onwards. It i...

9 months ago | 1

Answered
Histogram inside a plot.
Hi @Priya, The “position” property of the “axes” function determines the position with respect to the bottom-left corner of th...

9 months ago | 0

Load more