Respondida
imshow displays blank figure
Try with a built-in demo image: img = imread("peppers.png"); imshow(img); Do you still get a white axes?

más de 3 años hace | 0

Respondida
i want to know my mistake in this code to plot two graphs
alpha and beta have different number of elements. I suggest you use linspace to create them with the same number of elements. ...

más de 3 años hace | 0

| aceptada

Respondida
classification learner app train all model script export
The app is the thing that trains the models. It creates models that you can then use to PREDICT responses. It is not meant to ...

más de 3 años hace | 0

Respondida
How to crop the coin circular and neglect the rest area?
That's what I do in my popular tutorial. See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange...

más de 3 años hace | 0

| aceptada

Respondida
Easiest way to make input dialog box with multiple checkboxes?
You could make an app for that. For example here is how one did it: https://www.mathworks.com/matlabcentral/fileexchange/83328...

más de 3 años hace | 0

Respondida
Array indices must be positive integers or logical values.
Try for W = 0 : 500 H{W + 1} = inv(K-W^2*M); end See the FAQ for a thorough discussion: https://matlab.fandom.com/wiki/...

más de 3 años hace | 0

Respondida
Plot multiple irradiances as one average
You might look into these functions: groupsummary, grpstats, or splitapply If you have any more questions, then attach your dat...

más de 3 años hace | 0

Respondida
Importing data from excel
What country is your operating system setup for? Is it a country that uses comma instead of period for the decimal point? Othe...

más de 3 años hace | 0

Respondida
Error Brace indexing is not supported
How did you get imageFileNames? Was it from using dir somehow? % Get file listing of all PNG files in the current folder. fil...

más de 3 años hace | 1

| aceptada

Respondida
how to delete previous text-tag for a moving object?
Not sure how you're creating the tag but if you get the handle to it then you can remove it, like % Create a red spot to mark t...

más de 3 años hace | 0

| aceptada

Respondida
I cant type anything in the editor.
Try restarting MATLAB and see if that fixes it. I'm pretty sure you get free help while on a free trial. I'd call tech suppor...

más de 3 años hace | 0

Respondida
Preventing/ avoiding Opening MATLAB window when opening an app (.mlapp-file)
If you double click the file in File Explorer it opens the default app defined for it in the operating system. For .mlapp, this...

más de 3 años hace | 1

| aceptada

Respondida
How can I remove those contour lines outside the map?
If you have (x,y) coordinates of the outline of the state, and a list of (x,y) coordinates you want to check, you can use inpoly...

más de 3 años hace | 0

Respondida
Low rank Euclidean distance matrix
I'm not sure what that means, but you can generate an EDM matrix with bwdist

más de 3 años hace | 0

Respondida
How do I measure the average thickness of this orange part automatically? I have 1000 images with different thicknesses. Please help me with code.
What I'd do is see if you can threshold it to get the bright stuff at the top. Then scan the mask column by column to get the t...

más de 3 años hace | 0

Respondida
Remove NaN values from a table
All columns in a table must be the same number of rows. To have what you want, you'd have to break apart your table into 4 (or...

más de 3 años hace | 0

Respondida
try...catch for memory full error in imaq toolbox ?
Perhaps put the try catch INSIDE the while loop. Then in the catch, put a break to kick it out of the loop if an error was thro...

más de 3 años hace | 0

Respondida
How to find the most used word in a text?
If you don't have the Text Analytics Toolbox (like @the cyclist solution requires) then you can get a histogram like this: str ...

más de 3 años hace | 0

Respondida
I would like to modidy the colors in this 2d plot, different from standard ones (e.g., 'b', 'k')
You can define your own colors. For example if you wanted an RGB of 40, 50, 90, you can do plot(T1.('X'), T1.('S'), '-', 'Colo...

más de 3 años hace | 0

Respondida
How to shift a curve to superimpose it with another one on the same figure ?
Maybe try rescaling the black to match the red blackx = rescale(blackx, min(redx), max(redx)); blacky = rescale(blacky, min(re...

más de 3 años hace | 1

Respondida
Does the radon and iradon built in functions use the center as the reference for the projections?
No it doesn't use the center. It's as if you had a whole army of those rays, all parallel to each other. The arrowheads land o...

más de 3 años hace | 1

| aceptada

Respondida
Moving average with two different windows
Yes. Let's say that you have a vector and X is 5000, you can do the filtering in two steps smooth1 = movmean(signal(1:X), wind...

más de 3 años hace | 0

| aceptada

Respondida
how to count uncommented ligns in matlab file?
You can use my comment counter program, attached.

más de 3 años hace | 0

Respondida
how to save data of lots of images individually?
You need to index the data variable with the loop variable, like for k = 1 : numImages data(k) = whatever; end Then you ...

más de 3 años hace | 1

| aceptada

Respondida
Image quality enhancment of a poor quality image.
You can't do it if the image is as bad as that. You can try deconvblind or deconvlucy or similar things but if the info is not ...

más de 3 años hace | 0

Respondida
I am trying to plot the first 2 dimensions of a 3d matrix with respect to the third.
Do you perhaps mean a 3-Column matrix instead of a 3-D array? Like you want to plot (x,y) against z? If so, try this. Let's s...

más de 3 años hace | 0

Respondida
I am trying to plot the first 2 dimensions of a 3d matrix with respect to the third.
You can use a for loop and pause a little so you can see each image for each z-level (time value); Let's say m is your 3-D arra...

más de 3 años hace | 0

Respondida
Control scale and colors in temperature contour
You need to read in all the files first to determine the overall max and min. Then you can create a colormap and apply if to th...

más de 3 años hace | 0

| aceptada

Respondida
Receiving this error code when extracting centroid and plotting motion
@Sara K Takiguchi this seems to work fine for finding one white paper on your hand. % Demo to track green color. Finds and ann...

más de 3 años hace | 0

| aceptada

Respondida
Subscript indices must either be real positive integers or logicals always show up. what should i do?
See the FAQ for a thorough discussion of what causes the error and how to fix it: https://matlab.fandom.com/wiki/FAQ#%22Subscri...

más de 3 años hace | 0

Cargar más