Answered
ginput to select RGB values of image to hold over when I turn image to grayscale
The red pepper has thousands of red colors in it. Do you want to have only the two pixels you clicked on stay red and all other...

4 days ago | 0

Answered
How can I plot the transfer function? HELP Please.
You're using both p and s to describe the same p in the formula. Change s to p and I think it should work: numerator = KH * ( ...

5 days ago | 1

Answered
count a loop when button is pushed
See attached GUI. When you press the Go button, it counts up and put the result into a text label on the GUI. When you press t...

6 days ago | 0

Answered
Comparative Operator result is wrong
See the FAQ: FAQ Why is 0.3 - 0.2 - 0.1 or similar not equal to zero?

6 days ago | 0

Answered
How can I remove the file path from an audio file name?
Try using fileparts(): [folder, baseFileNameNoExt, ext] = fileparts(fullFileName); baseFileName = [baseFileNameNoExt, ext];

6 days ago | 0

| accepted

Answered
Array processing operation and summation
Use the sum() function, if that is allowed. N = input(.................. % TO DO -- you finish it! % Get n as a vector [1, 2, ...

6 days ago | 0

| accepted

Answered
FFT of a Block processed image.
You can just do ft = fft(Temporary_Tile); Then do with ft whatever you want to.

6 days ago | 0

Answered
My plot comes up as a white graph with no line.
Give it a line style, like plot(t, PR1, 'b.-', 'LineWidth', 3, 'MarkerSize', 30); but the real problem is your PR are just sca...

7 days ago | 0

Answered
How do i remove or disable or hide zoom in zoom out, save, brush tool from Matlab figures ?
Try : ax = gca ax.Toolbar.Visible = 'off' Full Demo: figHandle = figure; x = 0 : 0.01 : 0.05 y = [0, 60, 105, 130, 138, 30...

7 days ago | 0

Answered
Image Segmentation - Watershed Algorithm
You could either filter them out by shape or area, or you could check the range (max - min) and get rid of any blobs that do not...

7 days ago | 0

| accepted

Answered
Conversion From Gray scale to RGB colormap
Don't so it like that. Simply use ind2rgb() rgbImage = ind2rgb(indexedImage, cmap);

7 days ago | 0

| accepted

Answered
display of the intensity curve of the points
Simply extract them intensityProfile = zeros(1, length(xi), 'uint8'); for k = 1 : length(xi) column = round(xi(k)); ...

7 days ago | 0

| accepted

Answered
App designer - problem with thresholding image
You need to display the output image imshow(app.img);

7 days ago | 0

Answered
How can I plot a circle with a given radius and perimeter with the use of GUI,
Several ways are shown in the FAQ: https://matlab.fandom.com/wiki/FAQ#How_do_I_create_a_circle.3F

7 days ago | 0

Answered
Why am I getting the error, "Array indices must be positive integers or logical values."
It's thoroughly explained in the FAQ: https://matlab.fandom.com/wiki/FAQ#.22Subscript_indices_must_either_be_real_positive_inte...

7 days ago | 0

Answered
no need, thank you very much
The original question, before @Michael Kuhlow deleted it for some reason, asked how to indicate mean and median on a graph of th...

7 days ago | 0

Answered
How to Separate the RGB channels from an image and get the average of each RGB channel separetly
Like DGM, I'm not even sure what the goals are. The use case/context was never given. What is the fabric? What is the dye and...

7 days ago | 1

Answered
How to Separate the RGB channels from an image and get the average of each RGB channel separetly
Have you tried the Color Thresholder on the Apps tab of the tool ribbon? It's pretty straightforward. Read in your image, choo...

8 days ago | 1

Answered
Separating Objects in Binary Image
Call imfill() and then imerode(). Then mask it: Untested code mask2 = imfill(mask1, 'holes'); se = strel('disk', 3, 0); % Ad...

8 days ago | 0

| accepted

Answered
how to dispaly the 2D matrix image?
You can use truesize as long as your image is not larger than your screen: img = uint8(randi(255, 256, 256)); imshow(img); ax...

8 days ago | 0

Answered
Creating a histogram,
Try this: % Create a hundred thousand values ranging from 0 - 1000. numValues = 100000; r = 1000 * rand(numValues, 1); % Def...

9 days ago | 0

Answered
find the object closest to the center
First I'd get rid of the outer ring-shaped blob. Then I'd fill the remaining blobs. Then call regionprops() to get the centroi...

9 days ago | 2

Answered
How to find common peak and save it location
Try experimenting around with ismember().

10 days ago | 0

Answered
how to find the end point coordinates of an object in binary image.?
There is an easy way. Just use bwferet(): clc; % Clear the command window. close all; % Close all figures (except those o...

11 days ago | 1

Answered
Sum the digits of a number?
Here is how I did it: fprintf('Beginning to run %s.m ...\n', mfilename); % Get a random integer. originalNumber = int64(randi...

11 days ago | 0

Answered
EndPoints in 3D skeleton
bwmorph() has an 'endpoints' option. The image should be a skeleton. bwmorph() also has a skeleton option but I think bwskel()...

11 days ago | 0

| accepted

Answered
Using K Means clustering to identify coactivation of neurons
"My problem lies in how to display these clusters" <=== use plot3() or scatter3().

12 days ago | 0

Answered
Finding the histogram difference between two pictures
Well there are lots of ways that code could be improved, but we can't fix it because it's an image. We can't fix or run an imag...

12 days ago | 1

Answered
how to find the end point coordinates of an object in binary image.?
What I would do is to use regionprops() to find the centroid and orientation. Then also call bwboundaries() to get the x,y coor...

12 days ago | 0

Answered
eval not working for a range of numbers
Why are you even using eval at all instead of simply doing this: thetaAB = sol.thetaAB; theta4 = sol.theta4; ???

13 days ago | 0

Load more