Discussion


MATLAB is the best programming language
MATLAB is the best programming language

2 years ago | 3

Discussion


I think this is the beginning of a beautiful friendship.
Casablanca

2 years ago | 1

Discussion


MATLABlypse Now
I love the smell of debugged MATLAB code in the morning. Smells like...Victory!

2 years ago | 1

Answered
Converting 3D matrix to 2D matrix image
Try these two code snippets. The first one gives you a grayscale image, regardless of what's in the file. originalImage = imre...

2 years ago | 1

Answered
Is there a method to capire similarity between two images?
See https://en.wikipedia.org/wiki/Content-based_image_retrieval#Content_comparison_using_image_distance_measures In MATLAB, you...

2 years ago | 0

Answered
How to change the scale of color bar to discrete ?
Try this. Adapt as needed: % Read in sample image. grayImage = mat2gray(imread('cameraman.tif')); % Make a colormap with 10 ...

2 years ago | 0

Answered
Polynomial fit of a wavefront profile
I'm not familiar with that optical technique. Is a "wavefront gradient profile" the same as a "wavefront profile"? You refer t...

2 years ago | 0

Answered
I WANT TO EXTEND MY X-AXIS
Not sure what you want. I'm guessing it's either repmat or xlim

2 years ago | 0

Answered
Getting average for a range of data on a plot. Not entire range, only for a section.
"I just need the mean value of all the values at steady state." <== So use histogram or histcounts.

2 years ago | 0

Answered
Function output does not get recocnized
When you click Start, this code runs: % Value changed function: StartButton function StartButtonValueChanged(app, event) ...

2 years ago | 0

Answered
DRAW LINES POINT TO POINT WHITH GINPUT
See attached demos.

2 years ago | 0

Answered
HOW CAN I DRAW POINTS WHIT GINPUT AND THEN JOIN THEM WITH A LINE
See attached demo.

2 years ago | 0

Answered
HOW CAN I CREATE REFERENCE AXES ON A 2D PLANE THAT ALLOWS ME TO DRAW AT THE INTERSECTIONS OF SUCH AXES?
Perhaps put the tick marks at the origin? ax = gca ax.XAxisLocation = 'origin'; ax.YAxisLocation = 'origin';

2 years ago | 0

Answered
how to export image classification results in excel sheet
Exactly what results do you want to export? Screenshot please. If you have it in a variable, you can use writetable or writece...

2 years ago | 0

Answered
Regionprops handling of big images
How big is your bs.data binary image? I would start by trying to delete any variables the in workspace that you don't need anym...

2 years ago | 1

Answered
I can't find the ranova function
You probably don't have a license for it because I see that function should be in that toolbox since 2014. What happens if you ...

2 years ago | 1

| accepted

Answered
Create mesh from matrix
Not sure what you mean by "plot" but to view a and b as 2-D images and 2.5-D surface plots: subplot(2, 2, 1); imshow(a, []); ...

2 years ago | 0

Answered
How to plot a "Bean-shaped" object in MatLab please? (preferably a parametric equation)
Isn't this a duplicate of your question that I answered here: https://www.mathworks.com/matlabcentral/answers/2032129-how-to-cre...

2 years ago | 0

Answered
User input to repeat a script
Try questdlg while (1) % Put script code here. % Now ask use if they want to do it again. promptMessage = ...

2 years ago | 0

Answered
How to create this "bean shape" in MatLab please?
Try this: t = linspace(0, 2*pi, 1000); x = 3 + 2 * sin(t) + cos(2 * t); y = 4 * cos(t) - sin(2*t); plot(x, y, 'b-', 'LineWid...

2 years ago | 1

| accepted

Answered
How can I identity clusters on my scatterplot?
It looks like you don't have clusters. And I doubt you used scatter() to plot those. It looks like you used plot() to plot 10 ...

2 years ago | 0

| accepted

Answered
How can I transfer matlab to another user
We've done this several times. Contact your sales rep at the Mathworks. If you don't know who it is, just call the general num...

2 years ago | 0

Answered
Why is the line of y2 always a flat line at x-axis instead of a straight line with negative gradient?
It's flat because of hte scale of your y axis. Look -- it goes from -1 to 50 million, while y2 goes from 3 to -17. How do you ...

2 years ago | 1

| accepted

Answered
How to convert a grayscale indexed image into a RGB indexed image ?
There is no such thing as an RGB indexed image. You can convert your indexed image into an RGB image with rgbImage = ind2rgb(i...

2 years ago | 1

Answered
how to extract missclassified pictures out of a file with a mixed dataset?
If, for your test set, you don't know the correct classification, and all you know is that the images you extracted into a diffe...

2 years ago | 0

Answered
Could a Phd uses a license Trial in a commercial company?
As I understand it, anyone can use MATLAB during their 30 day license trial. If they gave you a license, they want you to use i...

2 years ago | 0

Answered
Why do I keep getting an fopen error in my code? [absolute beginner]
This works fine: output_dir = pwd removed_ch = 9999; filename = 'test02.txt'; outputtextfile = fullfile(output_dir, filena...

2 years ago | 0

Answered
I am trying to run my code but it isn´t work. I don´t know what is wrong whit
It probably gets stuck in an infinite loop. Don't you understand that when you do this: n = 0; while n <=15 end n is less ...

2 years ago | 0

Answered
Why I do I get different results when I used jaccard Index with png format than with jpg format?
Both sets of code use the PNG versions. In general you should not use JPG files for image analysis, unless you're specifically ...

2 years ago | 1

| accepted

Load more