Réponse apportée
i used marker controlled watershed segmentation algorithm to segment the image into diff colors.i want to count the no.of segments in the segmented image
Hello @madhuri kalapala To count the number of distinct colors in a segmented image after using the marker-controlled watershed...

4 mois il y a | 0

Réponse apportée
how to extract image boundary for a color image
Hi @alapati pujitha You can use the "edge" function with the "Canny" detect edges in the image Please refer to the code below ...

4 mois il y a | 0

Réponse apportée
How to convert 3D plot to 2D plot
Hello @OriAlpha, I assume that you wish to project your 3D plot on a 2D plane. You can follow the code below to project your ...

4 mois il y a | 0

Réponse apportée
Plotting a volume in 3D
Hello @Michael Ross To plot a solid volume defined by parameters t1, t2, t3, where each parameter has a defined range, you can ...

4 mois il y a | 0

Réponse apportée
Matlab Animation for 4d plots?
Hello @Anurag Chittanahalli Papegowda, One way to make animated plots by updaing the plot inside a loop: numTimePoints = 100; ...

4 mois il y a | 0

Réponse apportée
how to detect the haziness of the color image?
Hello @Packia Naveen, One of the simple ways to determine haziness of an image is to analyze the contrast and clarity of the im...

4 mois il y a | 0

Réponse apportée
how to find color corrologram of an image?
Hello @mano, The general approach for computing a corrologram of an image involves colour quantizing the image and computing th...

4 mois il y a | 0

Réponse apportée
4D plots in Matlab?
Hello Ali, If you want to represent the change in 3D position of a graphic over time, you can represent this using with an anim...

4 mois il y a | 0

Réponse apportée
Changing the color of image
Hello Eric, You can use the "winter" colormap to change the color of the image with a gradient of colours from green to blue. ...

4 mois il y a | 0

Réponse apportée
how to color code a vector field based on the vector direction?
Hello @Masih Jorat You can map the direction to colors using a colormap and use the direction cosines or angles to determine th...

4 mois il y a | 0

Réponse apportée
Plot vector field in Cylindrical
The conversion from Cartesian to cylindrical coordinates is given by: The unit vectors in cylindrical coordinates are related...

4 mois il y a | 0

Réponse apportée
I want to plot the half only in the attached figure. How can I do that?
Hello @Shreen El-Sapa You can make the following changes to the contour plot to plot only the top half p1=contour(x,y,psi1,[0....

4 mois il y a | 1

Réponse apportée
How can I appear the streamline around the spheres?
Hello Shreen, You can plot the streamlines by using a series of “contour” functions the way you've been attempting to. hold o...

4 mois il y a | 1

Réponse apportée
Rotation of a 3D vector field around axis
Hello @AC95, I was able to rotate the vector field about the y-axis using a rotation matrix Here's the code uses a rotation m...

4 mois il y a | 0

Réponse apportée
Matrix dimensions must agree
Hello Meaghan, The reason you get this error is because you cannot divide two matrices the way you divide two scalars. To f...

4 mois il y a | 0

Réponse apportée
How can I change vector colors in quiver plots and add color bar based on vector magnitudes and custom magnitudes assigned to each vector?
Hello Nafiz The “quiver” function in MATLAB does not natively support color coding based on vector magnitude. However, you can ...

4 mois il y a | 0

| A accepté

Réponse apportée
how to get a plot quiver with velocity magnitude
Hello bharathi The “quiver” function in MATLAB does not natively support color coding based on vector magnitude. However, you c...

4 mois il y a | 0

Réponse apportée
How can I plot a velocity field plot with color code?
Hello Emre The “quiver” function in MATLAB does not natively support color coding based on vector magnitude. However, you can ...

4 mois il y a | 0

Réponse apportée
What is the matlab code for spherical indicratix?
Hello Khadak, To create a spherical indicatrix, you can follow the code below t = linspace(0, 2*pi, 1000); a = 1; x = ...

4 mois il y a | 0

Réponse apportée
having legend title and enlarging legend marker size at the same time
Hello @CS It is a known problem that a title to a legend cannot be added when calling the "legend" function with multiple outpu...

4 mois il y a | 0

Réponse apportée
Why does the same View property for Axes with different PlotBoxAspectRatio result in different views?
Hi Aaron, The behaviour arises because of the "axis equal" command. When you use the "axis equal" command, it adjusts the plot ...

5 mois il y a | 0

| A accepté

Réponse apportée
conformal mapping of circle
To transform a circle using conformal mapping, you can directly apply the transformation to the equation of the circle. Here’...

5 mois il y a | 0

Réponse apportée
Alternative to scatter3 plot
I am assuming the data you have, i.e. X, Y and Z are vectors. In this case, you can use the “scatter3” function without the loop...

5 mois il y a | 0

Réponse apportée
How to plot the electric field using when the desired signal is small and there are many data points
Assuming that you want to plot the magnitude of the z component of the electric field in a 2D space specified by the variables “...

5 mois il y a | 0

Réponse apportée
Suggestions for a more efficient way of writing this code
Hello Grey, Assuming that you want to maintain the variable names as you have specified, since you are retrieving the data fr...

5 mois il y a | 0

Réponse apportée
How to detect Black object centers in binary image without inverse it using connected component label
Hello Bharat, You can use connected components without inverting the image by just inverting the logic of the image while pass...

5 mois il y a | 0

Réponse apportée
In 'wblplot' command how to alter legend?
To display only certain lines on the plot you can pass in the handles to the line objects as a parameter to the “legend” functio...

5 mois il y a | 0

Réponse apportée
How to change y axis units from decimal to % in probability plots (function: probplot) or Weibull plots (function: wblplot)?
To display the y axis labels as percentages for “probplot” or “wbplot”, you can modify the y-axis tick labels using MATLAB's axi...

5 mois il y a | 1

Réponse apportée
How does matlab compute the contours of gaussian, student's t or clayton copulas?
Hi Juan, MATLAB computes the contours of a probability distribution like a bivariate gaussian distribution by evaluating the p...

5 mois il y a | 0

Réponse apportée
How to plot contour for gaussian copula (etc.)
You can use the “copulapdf” function to plot a bivariate gaussian copula pdf and then use the “contour” on these pdf values func...

6 mois il y a | 0

Charger plus