Réponse apportée
segmentation using k-means clustering
Sorry I didn't see this when it was posted 3 years ago. As you can see the whole approach is wrong. K-means is not what you wa...

presque 3 ans il y a | 0

Réponse apportée
Magnifying a Segment of Plot in MATLAB Figure
I'm attaching some of my demos where I insert axes into axes as small insets. Adapt the "inset_plot_within_another_plot.m" fi...

presque 3 ans il y a | 0

Réponse apportée
How to determine resolution of an image in micron/pixel
I believe you can tell your microscope to stamp a "micron bar" into your image. Do that, then calibrate to it. See the attache...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to make contour smooth
Looks like you used contourf on some gray scale image. You can get smoother contours by blurring your image before calling cont...

presque 3 ans il y a | 0

Réponse apportée
comparing two matrices of different dimensions
Here is an alternate way using pdist2 in the Statistics and Machine Learning Toolbox. % Create simple, sample integer data. A ...

presque 3 ans il y a | 0

Réponse apportée
I have 2D images of black balls and white inter-balls spaces. I want a CNN to recognise the white area. I think it's a grayscale binary image segmentation task
Training with synthetic images and then running on real world images will likely produce inaccurate segmentations and porosity e...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
Turning all elements of a column array into the same factor of 10
Try round X = [19.9, 20, 20, 20.1, 20.12, 19.81, 20, 32, 46]; rounded = round(X, -1)

presque 3 ans il y a | 1

| A accepté

Poll


My preferred vacation is to visit

presque 3 ans il y a | 13709 votes | 15 comments

Réponse apportée
Saving and reloading a table
That should work. You'll need to show us how you actually saved it with the save function. What I'd do is %------------------...

presque 3 ans il y a | 0

Réponse apportée
I'm finding it difficult to execute loadcase functions using MATPOWER toolbox.
You have a file called loadcase.m. The code in that file is a script, not a function. So it cannot take an input argument. Ye...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Write a MATLAB program which will ask the user for a number. If the number is equal to two times a predefined number, the program should print out a welcome message. Otherwise
This looks like a homework problem. If you have any questions ask your instructor or read the link below to get started: How d...

presque 3 ans il y a | 1

Réponse apportée
saving the R G B values displayed with impixelinfo in an image into a matrix
Use imread to read it into an array before you display it. Then you'll have all the RGB values. It's much easier to do it this...

presque 3 ans il y a | 0

Réponse apportée
save the RGB numbers of an image inside a cell
I know you said you want a cell but I think you really don't want a slow, inefficient, memory hogging cell array. I think you s...

presque 3 ans il y a | 1

Réponse apportée
Tracking Surface Features Over Multiple Images
I'm still not sure what feature you want to measure in those images, like mean intensity/color, area, centroid, number of blobs,...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How would I perform a weighted least-squares regression analysis with x and y error?
Do you want to simply use polyfit to fit a polynomial? If so, see attached demo.

presque 3 ans il y a | 0

Réponse apportée
Setting graph colour also visible in greyscale
If you want you can set up your own colormap. You might want to use gray and then use just specific rows from it, like you did ...

presque 3 ans il y a | 0

Réponse apportée
How to add different shaded Color to the back ground of a graph?
Try fill or patch

presque 3 ans il y a | 1

| A accepté

Réponse apportée
I'm trying to make an image with data from a .txt file
I get this: % Demo by Image Analyst clc; % Clear the command window. close all; % Close all figures (except those of imto...

presque 3 ans il y a | 1

Réponse apportée
How to make loop over numbered folders?
See the FAQ for code snippets: https://matlab.fandom.com/wiki/FAQ#How_can_I_process_a_sequence_of_files?

presque 3 ans il y a | 0

Réponse apportée
how to make the size of 2 boards equal
If they have the same number of columns and you just want to stitch them together, one atop the other, try AB = [A; B]

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Doubt in a program
Don't use time as the name of your variable since it's a built-in function. Call it "theTime" or something. Don't have line 20...

presque 3 ans il y a | 0

Réponse apportée
what can MATLAB do with tif files
See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It's a generic, general purpose demo of ...

presque 3 ans il y a | 2

| A accepté

Réponse apportée
How to quantify the object shift between projection images using Matlab?
I don't see any images attached, but try imregister or imregcorr Or try normalized cross correlation. See attached demo.

presque 3 ans il y a | 0

Réponse apportée
How to remove inner edge of the target?
What do you want to do? Why did you use edge() instead of simply thresholding? Anyway, if you want a list of outer boundary co...

presque 3 ans il y a | 1

Réponse apportée
calculate sum month and annual
Some functions for you to look at splitapply, findgroups, grpstats, groupsummary

presque 3 ans il y a | 0

Réponse apportée
function definition in a script must appear at the end of the file.
Try this: %============================================================================== % SCRIPT STARTS HERE % Load the Mat...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
MATLAB Fundamentals course problem
Call the Mathworks TODAY, before the weekend. We can't help you here.

presque 3 ans il y a | 0

Réponse apportée
How to get rid of error: Column headers from the file were modified to make them valid MATLAB identifiers before creating variable names for the table.
See attached function. Follow instructions in the comments to get the identifier of the error(s) you want to suppress and add t...

environ 3 ans il y a | 0

Réponse apportée
Anyone else having issues with MATLAB 2023a hanging after some period of inactivity?
Happens to me sometimes. Like if I and click on MATLAB after not using it for a few hours, it seems to take a while to "wake up...

environ 3 ans il y a | 0

Réponse apportée
Accessing matlab outside my registered address
Your fastest route to success is to do exactly what it says to do in the FAQ: https://matlab.fandom.com/wiki/FAQ#After_installa...

environ 3 ans il y a | 0

Charger plus