How can i save the scatter in GUI?
If you have r2020a, use exportgraphics().

7 days ago | 0

How to define 1000*1000 matrix in matlab? Whenever I want to define a matrix 1000*1000, out of memory message was shown. Can anyone please help me?
Try this to get a 1000-by-1000 matrix rows = 1000; columns = 1000; A = zeros(rows, columns);

7 days ago | 0

dE values in an image search
Code for that is in the demo in my File Exchange: https://www.mathworks.com/matlabcentral/fileexchange/31118-color-segmentation-...

7 days ago | 0

| accepted

Make a standalone app
Yes, you need the compiler toolbox. See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_make_a_standalone_executable_from...

7 days ago | 2

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 = ...

7 days ago | 0

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...

7 days ago | 1

| accepted

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...

7 days ago | 1

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...

7 days ago | 1

| accepted

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...

8 days ago | 0

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 =...

8 days ago | 0

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...

8 days ago | 0

| accepted

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

8 days ago | 0

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...

8 days ago | 0

| accepted

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

8 days ago | 0

| accepted

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.

8 days ago | 0

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...

8 days ago | 0

| accepted

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...

8 days ago | 0

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...

8 days ago | 0

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])...

8 days ago | 0

| accepted

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...

9 days ago | 0

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...

9 days ago | 0

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...

9 days ago | 0

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...

9 days ago | 1

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

9 days ago | 0

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 ...

9 days ago | 0

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...

9 days ago | 0

| accepted

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...

9 days ago | 1

| accepted

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...

11 days ago | 0