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

plus de 3 ans il y a | 0

Réponse apportée
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. ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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/...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
Low rank Euclidean distance matrix
I'm not sure what that means, but you can generate an EDM matrix with bwdist

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
how to count uncommented ligns in matlab file?
You can use my comment counter program, attached.

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Charger plus