Binning data into 1000 bins between values
Description example Y = discretize(X,edges) returns the indices of the bins that contain the elements of X. The jth bin contai...

3 jours ago | 1

Using for loop to loop over pixels in RGB image and brighten the image.
What are you doing with c? Nothing. Anyway, c will be the same as the original b. Where are you actually displaying the image...

3 jours ago | 0

finding the centre line of the binary image
Try [rows, columns] = size(binaryImage); leftEdges = nan(rows, 1); rightEdges = nan(rows, 1); for row = 1 : rows t = fi...

4 jours ago | 0

| accepted

UITable color for value
Yes. Not sure how you're doing the display but you could make an array of circles and a colormap. Then use imshow(yourImage,...

4 jours ago | 0

Why am I receiving the error "Array indices must be positive integers or logical values."?
You might want to learn about this and lots of other good things in the FAQ: https://matlab.fandom.com/wiki/FAQ#.22Subscript_in...

4 jours ago | 1

how to assign imagesc to figure 1
Following Walter's code call figure(2) to create a figure numbered "2", then use bwmorph() with the 'clean' option to remove sin...

4 jours ago | 0

how can i generate random spikes of magnitude 1 and 0 (digital pulses)in matlab
Use r = randi([0 1], 1, numElements); To widen the pulses use movmax(). To control the rise and fall of the pulses, use movm...

4 jours ago | 0

| accepted

Can we apply histogram equalization on the HSV image?
Yes, though the results might look pretty strange unless you applied it to only the V channel, like this: clc; % Clear the c...

5 jours ago | 0

if with 2 conditions
What does this say whos Ree It's probably a vector, not a scalar.

5 jours ago | 0

How to suppress anonymous function handle being created?
You don't need to define it in a loop. You can define it outside the loop and just add the other variables to the input argumen...

5 jours ago | 0

Exporting images (png) through export_fig - painfully slow
Try comparing it to exportgraphics() but you'd need r2020a or later.

5 jours ago | 0

Displaying a set of images from a folder
FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F

5 jours ago | 0

How to download workspace to a .xls file?
Try readcell() and writecell(). If someone changes it in Excel, it won't automatically update the workspace in MATLAB. You'll ...

6 jours ago | 0

how can i use clarity factor with gaussian kernel in image processing
Looks like they define clarity as the max of the gradient in each floc blob: "The maximum value of Ig associated with each floc...

6 jours ago | 0

| accepted

how to calculate the area size of each spot in the image of ROI (pixels) in Matlab
See my Image Segmentation Tutorial and adapt as needed: Image Analyst's File Exchange If you need to background correct your i...

6 jours ago | 0

| accepted

I have a problem getting the MAIN GUI to appear on my screen.
I don't know why this always happens on the weekend. Since it's an installation problem (you can't run MATLAB), you need to cal...

6 jours ago | 0

Error: "Difference order N must be a positive integer scalar"
If you look at the documentation for diff() you'll see that the second argument is not a vector variable but a number for the di...

6 jours ago | 0

How to access the equation above the while loop
Try this: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except those of imtool...

6 jours ago | 1

From equation to matrix with for loop
Do you mean like this: x = 1 : 12 numRows = 3; % Whatever you want. y = zeros(numRows, length(x)); % Preallocate. for row = ...

6 jours ago | 1

| accepted

curve fitting and image segmentation
@Cansu Kelebek, try this to find the dividing line between the 2 breasts: % Demo by Image Analyst clc; % Clear the command ...

6 jours ago | 1

How to create a .mat file and format the data with 5 features to classify using ANN
Try the Classification Learner App on the Apps tab of the tool ribbon. Let us know if you can't figure it out.

6 jours ago | 0

Amplitude detection in time series data
You could probably use stdfilt() or movstd(). Try different window widths and plot the output. Or try thresholding and labelin...

6 jours ago | 0

I dont understand this error
You need to assign BOTH A and B, not just one of them. You only went into the else block and so you only assigned B, not A. So...

7 jours ago | 0

how can I segment breast thermogram to extract breast region..??
Look here for papers on it: http://www.visionbib.com/bibliography/contentsmedical.html#Medical%20Applications,%20CAT,%20MRI,%20...

7 jours ago | 0

For loop faster than vectors?
I'm not surprised. See my attached demo: Vectorized won 403 times out of 1000 = 40.3%. For loop won 597 times out of 1000 =...

7 jours ago | 1

| accepted

Am I allowed under the license agreement to keep using a previous version of matlab after I install a newer version?
You can always call them and ask. I have a professional license and for that it's not unusual to have multiple versions install...

7 jours ago | 0

| accepted

How do you plot a function?
Try this: t = linspace(-pi, pi, 1000); xt = (12 + 7 * sin(pi * t - (1/3 * pi))) .* cos(13 * pi * t); plot(t, xt, 'b-', 'LineW...

7 jours ago | 1

calculate summation of vectors
Hint: oddTerms = 501 : 2 : N; evenTerms = 500 : 2 : N;

7 jours ago | 0