Answered
Error using .* Array sizes must match.
Add these extra lines and tell us what you see in the command window: whos mNet whos y_max whos I whos Dnet whos Q whos t ...

1 year ago | 0

Answered
como resolver este en matlab
What do you want to do? Plot it? Integrate it over some area? ¿Qué quieres hacer? ¿Graficarlo? ¿Integrarlo en alguna zona? f...

1 year ago | 0

Answered
hello Dear!! I'm a new coming in the community I want your help. about coding on MATLAB does the code is correct ? or the using of (&&) is no faire? and how can I correct it? thank you for respond .
The double && is correct. However you don't need to do a logical comparison to true. If it's true, then app.LikeCheckBox.Value...

1 year ago | 0

Answered
How to remove all NaN and Inf values when calculate the mean?
@Amy You might try interpolating the values, for example: % Create data with good values and inf and nan values. v = [10, nan,...

1 year ago | 1

Answered
matlab r2024b download problem
With R2024b, which I just downloaded and installed on a Windows computer yesterday, it first downloads a ~230 kb stub program. ...

1 year ago | 0

Answered
How to remove the background of the images?
MATLAB now has the "Segment Anything Model". See https://www.mathworks.com/help/images/getting-started-with-segment-anything-mo...

1 year ago | 0

Answered
Script for running all .m files in a large file folder with sub folders.
OK. Good luck with it. You might find the FAQ: helpful: Process a sequence of files To get a list of all m-files in your top ...

1 year ago | 0

Answered
kinect depth image thresholding
From the RGB image, it looks like it's looking at a flat computer screen. And since that's mostly flat it makes sense that ther...

1 year ago | 0

Answered
R2024b: documentation installed locally - how can I bookmark help pages?
Can you go to your router settings and assign your computer a static IP address? You should be able to.

1 year ago | 0

Answered
Need help writing a matlab function.
Replace all your [1, 2, 3; 4, 5, 6] by A. Replace output = hw4_problem1(A) by output = hw4_problem1(A, n) A is a vector, no...

1 year ago | 0

Answered
Is it possible to make this if statement more concise?
Try % Create three row vectors using linspace, colon operator, and [list] V1 = linspace(2,53,84); V2 = 1:2.3:48; V3 = [1, 42...

1 year ago | 1

Answered
Calculating Perpendicular Distance Between Detected Edge and Smoothing Function
You could just do a brute force search. Here is untested code. closestDistances = zeros(1, numel(redx)); for k = 1 : numel(re...

1 year ago | 0

Answered
行列を計算して,代入をしたいのですが,サイズが異なるためできないといわれてしまいます.教えてください.
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...

1 year ago | 0

Answered
Finding a pattern in a table and the coordinates of the "first hit"
Another way is to use ismember % Load data from .mat file. S = load('Andrew Table.mat'); t = S.Table; % Extract first column...

1 year ago | 1

Answered
Slow initialization at startup during the "Ready" step
I don't think it should take over 3 minutes to start MATLAB. On my old, slow, severely memory- limited 8 GB Windows computer, i...

1 year ago | 0

Answered
Can someone help to teach how i want to upload this file into matlab and try preprocessing ?
See the FAQ for code samples: Process a sequence of files

1 year ago | 0

Answered
what is subplot and how to use it?
Imagine an N by M array of little graphs on your figure. Those are the rows and columns. The third arg is the number of the plot...

1 year ago | 19

| accepted

Answered
Merging uniform boxes into larger ones
How about just using the convex hull? boxGrid= [... 0 0 0 1 1 0 0 0 0 0 0 0 0 1 1 0 0 0 ...

1 year ago | 0

Answered
How to draw spectrum of signal?
Did you try plot()? fm = 1000; % whatever f = [0, 0, fm/2, fm]; X2 = [0, 1, 1, 0]; plot(f, X2, 'r-', 'LineWidth', 4); xlabe...

1 year ago | 1

| accepted

Answered
How to get segmented image using k-means clustering ?
I can't follow your code without putting a lot more time into it. There are not enough comments. It looks like you're trying t...

1 year ago | 0

Answered
I encountered an 'invalid use of operator' error message.
You forgot quotes. Corrected: load(fullfile('E:\charite\Data\EGCG_Round3\MRE\MouseAtlasReg\ProcessedShort\20241024_sl_MRE_Day1...

1 year ago | 0

Answered
Get the figures that video created
"i'm trying to upload the video" <== where (what site) are you trying to upload your video file to? Is the destination folder a...

1 year ago | 0

Discussion


Shade between curves
It would be nice to have a function to shade between two curves. This is a common question asked on Answers and there are some ...

1 year ago | 5

Discussion


My favorite image processing books
My favorite image processing book is The Image Processing Handbook by John Russ. It shows a wide variety of examples of algorit...

1 year ago | 5

Answered
Warning: Equation is badly conditioned. Remove repeated data points or try centering and scaling.
What if you just scanned your data with movmean to get the local mean, and movstd to get the local standard deviation, and then ...

1 year ago | 1

Answered
How to save frames to a video?
Please see my attached demo on how to make a movie from figures/axes/frames. Probably the simplest demos is movie_made_from_sur...

1 year ago | 0

| accepted

Answered
How can I remove dark background in satellite label
Not sure exactly what function you used to put the text label on, like text or insertText, but look at those functions for an op...

1 year ago | 0

Answered
How to get multiple function generated plots to generate from a single MATLAB script
To get it to plot in a new figure, you need to call the figure() function. Otherwise it just blasts over the old/existing figur...

1 year ago | 0

| accepted

Answered
Color Detection and Tracking Using USB cam
See my attached video tracking demo where I track the movement of a green Sharpie marker.

1 year ago | 0

Answered
How to calculate spray penetration length and spray cone angle?
It looks pretty easy. The steps would be Threshold the first image and use regionprops to find the centroid of the center spot...

1 year ago | 2

Load more