Answered
How would I plot and connect two points properly?
Instead of those two plot calls, do it this way. x=1; y=3; a=2; b=1; plot([x, a], [y, b], 'm-d', 'LineWidth', 2, 'MarkerSiz...

3 years ago | 1

Answered
Plotting functions using subplot
% f(x) = 3 sin2 (x) + cos(x/2), x ∈ [−3, 6.5] % g(x, y) = x 4 − 8y 2 + x + 4, x, y ∈ [−5, 5] % r(φ) = 2 + cos(5φ), φ ∈ [0, 2...

3 years ago | 0

Answered
Determining Signal to Noise Ratio
You need to smooth the data somehow, like with movmean, movmedian, or sgolayfilt. Then once you have the "noise free signal, yo...

3 years ago | 0

Answered
How to code NESTED CYCLES
Check them in advance: if isempty(b) % What to do return; end if isempty(f) % What to do return; end fo...

3 years ago | 0

Answered
Problem with 'InsertShape'?
There is probably extra points in the outlines, "Points". If you had attached your data, we could have helped you.

3 years ago | 0

Answered
what item do I need?
Learn how to use App Designer: https://www.mathworks.com/products/matlab/app-designer.html

3 years ago | 0

Answered
Blue Channel Not Separating from Image
Your image is a gray scale image; it is NOT a RGB true color image. There is no blue channel. You can make your code more robu...

3 years ago | 0

Answered
Energy (uniformity) of an image
Depends on what you mean by energy. Pixel values are, for a reflective image like taken with a regular video camera, already in...

3 years ago | 0

Answered
How to zoom in to a particular point of an image?
Try changing the axis limit by calling xlim and ylim to be the ranges you want. help xlim

3 years ago | 1

Answered
dilate a shell while keeping openings
Not sure what the "problem" is. You didn't say. Yes, dilation will make gaps closer, of course. Do you not want the gaps to g...

3 years ago | 0

Answered
Is there something similar to polyval for circle fitting?
What's wrong with downloaded functions? I'm attaching one I use, along with a paper for more general purpose one.

3 years ago | 0

| accepted

Answered
find what is the bounding box that encircles the whole objects as one unit?
No looping and using min() and max() needed. Just use bwconvhull and regionprops. Something like (untested): % Read the image...

3 years ago | 0

Answered
How do I determine the thickness of the ice at the leading edge of the airfoil from the image?
Subtract the first image from the icy image using imabsdiff. Then call bwareaopen to throw out blobs too small to consider. Th...

3 years ago | 0

Answered
collect all same coins in each figure
This is just what my tutorial does. See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It'...

3 years ago | 0

Answered
How I can normalize a range of columns of an image
It doesn't matter that the values in those columns vary. But if img is of type uint8, you need to cast it to double otherwise w...

3 years ago | 0

Answered
(kmeans clustering) Why doesn't image resulting from labeloverlay have the same size as original image?
Don't do [0,5]. That argument does not apply to RGB images (like what labeloverlay returns), it only applies to gray scale imag...

3 years ago | 0

Answered
How to change the pixel value int16 to new value?
Not sure I understand this: "I want to convert all the pixel value with new value IMG_cps" but why can't you just say IMG(:,:) ...

3 years ago | 0

Answered
How to find a concentric irregular polygon
I'd just find the centroid of the shape, then run around the perimeter finding the distance to the centroid. Then use normal tr...

3 years ago | 0

Answered
How to calculate the pixel value segmentation
I believe the total pixel count would be numel(P~=0).

3 years ago | 0

Answered
how to separate and show original color of foreground and background image in matlab?
You need to "segment" your image. How you do that depends on what your foreground and background look like. I'm attaching a de...

3 years ago | 0

Answered
how to show color of image in a pixel coordinate?
After you display the image, do this: impixelinfo

3 years ago | 0

Answered
How to rotate some part of image?
You can use the radon transform to determine the angle you need to rotate by. See how I rotated the football in the attached de...

3 years ago | 0

Answered
Why does it take MATLAB so long to print hello world?
What MATLAB commands did you issue from the command line? What you gave does not work: >> $ time matlab -nojvm -noFigureWindow...

3 years ago | 2

Answered
how velocize operation boolean
You asked : "(i want to find idx element that change from 0 to 1 )" So do this: a = [5, 0, 1, 9, 0, 1]; index = strfind(a, [...

3 years ago | 0

Answered
how velocize operation boolean
That code has nothing to do with your subject line. You want logicalIndexes = a == 1 % or linearIndexes = find(a == 1) Same...

3 years ago | 0

Answered
Estimating the diameter and frontal area of evaporating droplets
Try this: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except those of imtool...

3 years ago | 0

| accepted

Answered
Image combination of a selected feature / image processing
You want to invert your mask (second image) and use it as logical indexes to your original image (grayImage). grayImage(~mask) ...

3 years ago | 0

Answered
Operation with logical data. Which is better?
Those are different things you're showing. "a.*(a<5)" is a double vector. Your A only shows positive values, while B shows non-...

3 years ago | 0

Answered
There is anyway that I can plot a graph like this in MatLab with standard deviation ?
Do you mean like the "errorbar" LinePlot shown about half way down the page here: https://www.mathworks.com/products/matlab/plo...

3 years ago | 0

Load more