Answered
How could I sums up 1/n for n=1 to 10000?
Why not try it vectorized: n = 1 : 10000; % whatever you want sum_harm = sum(1 ./ n) What problem did you have in running you...

9 jours ago | 0

Answered
How can I calculate euclidian distance in RGB spaces for a skin lesion ?
"I want to find the percentage of colour appearance for each one of the six colours (white , red, light brown , dark brown , blu...

9 jours ago | 2

| accepted

Answered
how to calculate otsu threshold value for the matrix given [1 3 4 5 3 2; 4 6 2 4 1 9; 0 4 9 5 8 3; 2 4 9 4 2 1; 0 1 9 3 4 8; 5 6 4 7 3 8]
grayImage = uint8([1 3 4 5 3 2; 4 6 2 4 1 9; 0 4 9 5 8 3; 2 4 9 4 2 1; 0 1 9 3 4 8; 5 6 4 7 3 8]) threshold = graythresh(grayIm...

9 jours ago | 0

Answered
Count number of changes to 1
By far the simplest answer is to simply use strfind. It's a single line of code. It's a little known trick that strfind works f...

9 jours ago | 0

Answered
Increase the pixel size (decrease the spatial resolution) of a satellite image by applying a Gaussian filter with a (large) width
See video on super resolution: https://www.youtube.com/watch?v=_Y1-KlTEmwk&list=RDCMUCbfYPyITQ-7l4upoX8nvctg&index=2 Particula...

9 jours ago | 0

Answered
Hi, whenever I run this code my data get updated to the last file data. I don't want to do it, rather I want all data to stack one after another. How can I update this code?
We can't run images and I'm not going to type all that in. I suspect you want output to change depending on what "j" is but you...

10 jours ago | 0

Answered
I want to do exponential fitting for power decaying with time
If you have the Statistics and Machine Learning Toolbox you can use fitnlm. See attached full demo. Replace the demo data with...

10 jours ago | 0

| accepted

Answered
Increase the pixel size (decrease the spatial resolution) of a satellite image by applying a Gaussian filter with a (large) width
"Is there any other function that takes as input a fine resolution image, applies a Gaussian TF and produces a coarse spatial re...

10 jours ago | 0

Answered
How can I decrease intensity levels?
Not sure what "limiting" means to you when talking about uint8 images. The values are limited by 0 so if the value is 15, subtr...

10 jours ago | 0

Answered
how to calculate %?
Try this: x = 23; str = sprintf('%3.3d', x) fprintf("hundreds :%s\n", str(1)); fprintf(" tens :%s\n", str(2)); fprintf...

10 jours ago | 1

| accepted

Answered
How to select the range of data based on threshold range of our own choice?
Try this: load('output_classes.mat'); % data intensity = 20*log10(abs(S_VH)/max(max(abs(S_VH)))); imagesc(x_vect, y_vect, int...

11 jours ago | 0

| accepted

Answered
The program doesn't launch after the update has been failed
Your fastest route to success is undoubtedly to do what it says in the FAQ: https://matlab.fandom.com/wiki/FAQ#During_installat...

11 jours ago | 0

Answered
How can I use Iamerode to separate attached cells from the mask?
Those look like they're all separate, because they're different colors. Why do you say they're not? I've never heard of iaerod...

12 jours ago | 0

Answered
Rounding off a number to 5 decimal digits
It's just displaying 4 places because you're using format short. Switch to format long and you'll see it correctly. x = 1.4534...

12 jours ago | 1

| accepted

Answered
Matlab keeps crashing every time I open a new script.
Looks like the FAQ is the way to go. https://matlab.fandom.com/wiki/FAQ#After_installation,_MATLAB_crashes_or_gives_an_error_me...

12 jours ago | 0

Answered
Calculating the RMSE value between two images
You forgot to attach your variables. I don't know if you can subtract structures like that so I think ref and (the badly-named)...

12 jours ago | 1

| accepted

Answered
How can I calculate euclidian distance in RGB spaces for a skin lesion ?
Use this function: deltaE You will need to calibrate your images with known color standards, otherwise the delta E you get is t...

12 jours ago | 2

Answered
Get IP address over a Edit box
A related answer, if you want to get the IP address of your own computer, you can do this (if you're using a Windows system): [...

12 jours ago | 0

Answered
Inserting doubles into the field of a struct
It's because Updating is a structure array so you need to put Upda into a new structure in the array. This works, where I appen...

12 jours ago | 1

Answered
Codes (activex..) for Copy graphs (figure) from Matlab to Excel
@Ginés Aníbal See my attached demo and the function PasteFigureIntoExcel. Also see my other demo for using ActiveX to paste int...

13 jours ago | 0

| accepted

Answered
How to make a password edit text that only accepts the defined value and gives error when given different input.
When you want to check it, do this truePassword = 'whatever'; userEntry = handles.edit1.String; if strcmp(truePassword, userE...

13 jours ago | 0

| accepted

Answered
hyperspectral imaging signature plot
Read your images into a 3-D array, then do this: image3d = rand(100, 100, 32); % Create sample data. [rows, columns, numChanne...

13 jours ago | 0

Answered
how to find the angle and the sector of the image it belongs in
@Ioanna St try this: clc; % Clear the command window. close all; % Close all figures (except those of imtool.) clear; % ...

13 jours ago | 1

| accepted

Answered
detecting circle using hough tranform
center is probably empty. To correct, try changimg some of the input parameters. But why use hough/imfindcircles? For the im...

14 jours ago | 0

Answered
i want to see each plot figure for every j i have, so how can i do it?
Instead of figure(j) just simply do figure; to bring up a totally new figure window.

14 jours ago | 0

Answered
Can a Dictionary Key be a char?
You have to put the character or character array into a cell because the keys are in a cell array. Watch: keys = {'a'; 'b'; 'c...

14 jours ago | 0

Answered
Best fitting square for this plot
Try the camera calibrator: https://www.mathworks.com/products/computer-vision.html Otherwise try to find the left, right, top, ...

14 jours ago | 0

| accepted

Answered
Distance between bubble and tube
Hopefully you tried it and got something like I did: % Demo by Image Analyst clc; % Clear the command window. close all; ...

14 jours ago | 0

| accepted

Answered
Distance between bubble and tube
Did you try the algorithm I suggested? Looks like not. OK, here try this first. Threshold with imbinarize to get black areas ...

14 jours ago | 0

Answered
remove salt and pepper from an image then convert to binary
See my attached demos. You might be able to adapt them. But you don't have what is called classical salt and pepper noise. I ...

14 jours ago | 0

Load more