Answered
Why do I get the error "Subscript indices must either be real positive integers or logicals." ?
We get this asked every day. It's our most FAQQY of FAQs, so see the FAQ for a thorough discussion: https://matlab.fandom.com/...

3 years ago | 1

Answered
What are Your Thoughts on TMW Documentation Linking to the File Exchange
I think that as long as the documentation refers to other Mathworks staff-supplied web pages or code, it's fine by me.

3 years ago | 0

Answered
Cannot save a figure as a PNG file
Try exportgraphics exportgraphics(gcf, fileName);

3 years ago | 0

Answered
Convert cell array to filename
See the FAQ: https://matlab.fandom.com/wiki/FAQ#What_is_a_cell_array? Let's say element 1 of your cell array has a string that ...

3 years ago | 0

Answered
How can measure distance after threshold
"the distance from the right side to any white region , and from botton to the any white region. " To find the distance from t...

3 years ago | 0

| accepted

Answered
Masking images/matrixes
It looks like your mask is actually a labeled image since each blob seems to have a unique value (label). So in that case to ge...

3 years ago | 1

Answered
Dividing part of a histogram
I think you may have overlooked my suggestion to use linspace to compute the edges, or you just coudn't figure it out. So here ...

3 years ago | 0

Answered
update the column headng by readin the excel file
You forgot to attach your workbook, and forgot to say what kind of variable you want to work with in MATLAB (table, cell array, ...

3 years ago | 0

Answered
Dividing part of a histogram
Specify the "edges" you want for the bins as an input to histogram or histcounts

3 years ago | 0

Answered
what does count pixel =0 indicates?
It looks like your input image is practically binary already, because there is no histogram shown in the plot. Is it already bi...

3 years ago | 0

Answered
How can measure distance after threshold
Use bwdist on the inverse of the binary image. help bwdist

3 years ago | 0

Answered
Identify XY coordinates of boundaries of top 1/4 'pie slice' of circle
There is, sind and cosd, and it sounds like you've used them. They're for the arc. And linspace is for the straight line parts...

3 years ago | 0

| accepted

Answered
While performing Time Series plot in MATLAB, I am getting error "Index exceeds the number of array elements. Error in ts_plot (line 42)
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this: TUTOR...

3 years ago | 0

Answered
Comments before the H1 line in help text
You could try using readlines and writing your own help function PrintHelp. Something like this: % Test code for PrintHelp fi...

3 years ago | 0

Answered
Comments before the H1 line in help text
I don't believe so. It does not look like it. The help function just takes all the comments at the beginning of the file. If ...

3 years ago | 0

| accepted

Answered
Optimization using Cell Arrays
Just use a normal double array. Cell arrays are slow and very inefficient and are a special type of variable for situations whe...

3 years ago | 0

Answered
extracting boundaries properties from regionprops()
If they are known to be spheres, and you want to ignore having a "bay" if there happens to be a black spot on the boundary, you ...

3 years ago | 0

| accepted

Answered
How to calculate the area of single leaf along with its height
First of all you need to segment the plant, which is easy enough. Then get the skeleton of the leaf with bwskel. Then you need ...

3 years ago | 1

| accepted

Answered
How can i get the smallest shape using a list of centroid coordinates?
Why don't you just simply OR all the binary images together?

3 years ago | 0

Answered
Visualizing line plot with histogram density
Try this: % Initialization steps. clc; % Clear the command window. close all; % Close all figures (except those of imtool...

3 years ago | 0

Answered
how to connect the detection object
Zoom in. You'll see your crack in the original image is NOT continuous. Why do you think it is?

3 years ago | 0

Answered
Finding the amount of times '101' appears and does not appear in a series of strings
Use strfind. For example: dp = [0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1 0 1 1] indexes = strfind(dp, [1 0 1]) numOccurrences = numel(...

3 years ago | 0

Answered
Why do i get this error trying to install MATLAB using installation key? (no matter the version or install location or antivirus being disabled)
I assume you clicked the link it told you to, right? If so and you've exhausted all it suggested then your quickest route to su...

3 years ago | 0

Answered
Error Messages keep popping up: "Undefined function or variable"
There is just so much wrong with this that every time I fixed one thing, something else would pop up. For starters, use c2 inst...

3 years ago | 0

Answered
MATLAB R2023a Not Loading on Linux
If you don't get an answer here this weekend, then your fastest route to success might be the FAQ: https://matlab.fandom.com/wi...

3 years ago | 0

| accepted

Answered
How to test and train in MATLAB
Try this link: Debugging in MATLAB | Doug's MATLAB Video Tutorials

3 years ago | 0

Answered
Why are there not enough arguments?
From data_embedding.m, you call lsb_enc(wavin, wavout, text, password); and that runs fine because you've defined the 4 inputs...

3 years ago | 0

Answered
I want to make a movie from plots in MATLAB. How do I do this?
See attached demos, especially movie_made_from_plot.m.

3 years ago | 0

Answered
making a movie from plots
See attached demos, especially movie_made_from_plot.m.

3 years ago | 0

Answered
OTSU for fibrosis quantification
I don't know what you want. If you want Otsu threshold, use graythresh help graythresh See my Image Segmentation Tutorial in ...

3 years ago | 0

Load more