Answered
Separating and extracting data using edge detection
Attach your image in a .mat file. Do the nans run in between the pixels you want in a cluster? If not, simply do this mask = ...

9 days ago | 0

Answered
Convert the intensity of image into a specific intensity range
You can use mat2gray: Img2 = uint8(255 * mat2gray(Img)); or you can use rescale Img2 = rescale(Img, 0, 255); rescale gives a...

9 days ago | 1

| accepted

Answered
How do I get every combination of 3 vectors?
Here's a for loop way to do it: % Create 3 sample vectors, one is a 35x1, one is a 31x1 and the last one is a 13x1. v1 = (1:35...

10 days ago | 1

Answered
How do I flip an axis using imagesc?
Do you mean like with axis xy? [x, y] = meshgrid(1:16, 1:7) eta = uint8(rescale(sqrt(x.^2 + y.^2), 0, 255)); T=[360, 660]; p...

10 days ago | 1

| accepted

Answered
I want to add some of requiring to my codes ? How can I ?
Here's a start: customerName = 'Customer' again = true; numberOfItems = 0; maxItems = 30; % Failsafe. while again && number...

10 days ago | 0

Answered
Finding column number of maximum of an array:
It could appear in more than one location. So do it this way: maxValue = max(yourArray(:)) [rows, columns] = find(yourArray =...

10 days ago | 0

Answered
Matlab R2020A - App Designer Lamp Behaving Opposite to code
Is app.Switch2.Value a string, like 'on' or 'off'? If so, try strcmpi() instead of strcmp(). Or is it a logical or number like...

10 days ago | 0

| accepted

Answered
sharpening or cleaning this binary mask
You could blur the image and threshold it. windowWidth = 7; % Whatever - bigger gives more smoothing, experiment with differe...

10 days ago | 0

Answered
How to compare test images using BPNN for age estimation?
The Mathworks has a demo. Ask them for it. Here's a snippet: % Copyright 2018 The MathWorks, Inc. function faceGenderAgeDete...

10 days ago | 0

| accepted

Answered
calculate mean in a for loop
You need to specify the kth row of data Mean_answer(k, h)= mean(data(k, 1:h))

10 days ago | 0

| accepted

Answered
How to calculate surface area of a selected region from a 3d plot
regionprops3() can give you the surface area of a 3-D volumetric image.

10 days ago | 0

Answered
Problem in opening and Reading a Binarydata file ??
The file does not exist or exists in an area that you're not allowed to see. Try this % Here is the code for opening the and r...

10 days ago | 0

| accepted

Answered
i dont know whats the problem with this fails with variable test
When you do m(ii)=sum(x); x is a 2-D array. So sum(x) is a 1-D array, because it's summing each column, and you're trying to...

10 days ago | 0

Answered
Can I delete temp folder after installation?
Yes. I delete mine with no bad side effects. I don't know why they don't clean up after themselves after they extract the self...

11 days ago | 0

Answered
Imshow and Imshowpair differences?
You can tell imshow() what values to map to zero and what to map to 255 via the input arguments. imshow(grayImage, [40, 200])...

11 days ago | 0

| accepted

Answered
Changing pixel figure coordinates when using imshow
After you call it, try this: axis xy xy — Default direction. For axes in a 2-D view, the y-axis is vertical with values increa...

11 days ago | 0

Answered
Undefined function or variable
Evidently that's not a function that's built-in to any of your toolboxes. Why do you think it should be? You need to ask the a...

11 days ago | 0

Answered
wrote the code but the error says Unrecognized function or variable 'a'. Error in firle (line 13) Z = A(a)*B(b);
Perhaps you wanted this: x = 0 : 0.1 : 5; y = 0 : 0.1 : 5; [X, Y] = meshgrid(x, y); a = X(:); b = Y(:); numElements = nume...

11 days ago | 0

Answered
Medical Image Processing: X and Y coordinates switched around after using find and ind2sub?
ind2sub gives [row, column, slice], which is [y, x, z]. It does not give [ori_x, ori_y, ori_z] = ind2sub(...) like you had. Tr...

12 days ago | 1

Answered
how can i take ginput from an image until close the figure and after closing figure how can start next image from folder
See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F

12 days ago | 0

Answered
How save is it to run Matlab in multiple instances at once
You could get collisions if they're all accessing the same files on disk. But if they're not and everything is in memory, then ...

12 days ago | 0

Answered
Sorting unique colors from the image (much simplified now)
Mario: Here is the color gamut of that image in RGB color space: and here is the gamut in HSV color space: Each dot in th...

12 days ago | 0

| accepted

Answered
How to place a number (1) in a random position in Line 1 in a matrix of zeros?
Try this: M = zeros(10, 10); yourVariable = 1; column = randi(size(M, 2)) M(1, column) = yourVariable % Stuff the variable i...

12 days ago | 1

| accepted

Answered
How to skip '.' and '..' directory while looping over files in a folder?
Try this: myDir = uigetdir; % Use user to browse to a directory myFiles = dir(fullfile(myDir)) numFiles = length(myFiles) va...

13 days ago | 0

Answered
Retrieve original index from a masked array
Here is a way to find out where all the min values within the masked region occur in your original masked image. % Create a sma...

14 days ago | 1

Answered
Saving gray scale image
What is sat? A scalar? I1 should be gray scale because you took it as the red channel of testI. In fact, this code shows they...

14 days ago | 0

Answered
Stop code execution with a callback
See attached demo. It's for GUIDE but you can use the same concept for App Designer.

14 days ago | 0

Answered
steps in matlab to insert image
Depends on what you want to do - how you want to do it. One way is to just take a weighted average of the images if you want th...

14 days ago | 0

Answered
Reading txt file in GUI
If your drop down lists have numbers in them, and are named E, S, and T, then create a filename like this: eValue = app.E.Value...

14 days ago | 0

Answered
Is there a function that can calculate the standard deviation of an 3D array from a provided mean matrix?
It sounds like you have a 3-D array where each slice is a separate image, and you took the mean along the third dimension so tha...

14 days ago | 0

Load more