Answered
display comma in xlabel
Turn the number into a string. See my attached little utility function.

6 jours ago | 0

Answered
Hello everyone, I want to restrict the domain of a vector to return it to a smaller data set. For example, X between 2 and 7
Try this: X = [ 1 2 3 4 5 6 7 8 9 10]; mask = X > 2 & X < 7; % Or X >=2 & X <= 7 X = X(mask)

6 jours ago | 0

Answered
I am trying to use background subtraction on a set of images in a folder
Try this: folder = fullfile('C:\folder1\folder2'); filePattern = fullfile(folder, '*.jpg'); fileList = dir(filePattern); num...

8 jours ago | 0

| accepted

Answered
Figure steals focus from parent app on update
It's been a problem for years. It doesn't always seem to happen but when it does it's very annoying. I remember one time it ...

8 jours ago | 0

Answered
Increase determine step size
Try this: n = 5; n = [1,2:2:((2*n)-2)]

8 jours ago | 0

Answered
Selecting multiple ROI in images for processing
See attached demos.

8 jours ago | 0

| accepted

Answered
How do I code a sediment identifier or classifier by beach sand grain size using images?
I heard of a study that looked at beach sand in Alaska and was able to classify where (what river) each grain of sand came from....

8 jours ago | 0

Answered
Making a script that will generate a random "walker" that will walk along the x-axis randomly.
See my attached collection of random walk demos.

8 jours ago | 0

Answered
How do I keep my code and my variable editor in view at the same time
If you're using App Designer, then sadly no. App Designer and MATLAB each have their own separate IDE. I've been compaining fo...

8 jours ago | 0

Answered
Is there a metric to quantify edge information contained within different regions of an image
You can find lines with hough or houghlines. If you take the profile across the edge you can fit a line through the middle part...

8 jours ago | 0

Answered
How to separate string and number?
See lettersPattern and digitsPattern

8 jours ago | 0

Answered
How to export color thresholder tool values?
Just export the function and then copy the threshold values from the exported function to your own custom code.

8 jours ago | 0

Answered
Too many input arguments.
Don't use eval. Try it this way: cfileDir = fullfile(workDir, 'ElasticMeasure', 'DanEllis'); cd(cfileDir); mex dpcore.c; cd...

8 jours ago | 0

Answered
How can I extract the data (values) which are comming under the line
Convert it to a digital image and then use improfile

9 jours ago | 0

Answered
HOW TO GET UNDER A LINE VALUES USING PCOLOR
If you have the Image Processing Toolbox, use improfile

9 jours ago | 0

Answered
Script that Accurately counts lines in a text file
Try this textLines = readlines(fileName); numLines = numel(textlines)

9 jours ago | 0

Answered
dicomread Error regarding encoding
Try to read it in some other program that can read that unsupported format and write it out again, or export it to a different f...

10 jours ago | 0

Answered
WHEN I AM EXECUTING THIS CODE I GET A JULIA IMAGE .HOW CAN I READ THIS IMAGE IN THE CODE AND USE THIS TO GENERATE KEY FOR ENCRYPTION CRYPTION
Evidently "B.extenstion" does not exist. Maybe you wanted extenstion to be png or tif or something. Try this: fileName = full...

10 jours ago | 0

Answered
How to 'aggregate' a stack of images (picture 1) in matlab as in attached picture 2
% Take 10 fields of your structure called "df", % and put into slices of a new 3-D image array called "dff": [rows, columns] ...

10 jours ago | 0

| accepted

Answered
I'm studying for an exam and I am stuck on this problem this is what I have so far...
The first index in a matrix if row and the second is column. In your loops j is the column. So you cannot have the first index...

10 jours ago | 0

Answered
How can I plot this curve ?
Use bar, xlabel, ylabel, title, and xticklabels. Use text to add text to other places, like atop the bars. fontSize = 18; % D...

10 jours ago | 0

| accepted

Answered
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
You didn't attach any code so there is not much we can suggest. Here is how to resolve the problem: MATLAB Academy - Free 2 ho...

10 jours ago | 0

Answered
how to manual crop an ultrasound image
See my demo. % Demo to show how drawrectangle can be used to draw a rectangular box on the image. clc; % Clear the command ...

11 jours ago | 1

| accepted

Answered
generating random particles effect to an image
Here's a start. I trust you can finish it. If so, see this: MATLAB Academy - Free 2 hour training % Demo by Image Analyst to...

11 jours ago | 1

Answered
How can I calibrate to measure a distance from SEM image.
See my attached spatial calibration demo. You could adapt it to find the scale bar in the image automatically if you want.

11 jours ago | 0

Answered
how do save them all up and make a table with the values from all of my images?
You need to get all your filenames in a cell array (see the FAQ) Then You'd need to do something like this inside your loop ov...

13 jours ago | 0

| accepted

Answered
fprintf use with error
The problem is you're using %s but not passing in any string after the format string. It needs to be of this form fprintf(fid,...

13 jours ago | 0

Answered
How to change dimensions of output window
Did you try g = gcf; g.WindowState = 'maximized'

13 jours ago | 0

Load more