Answered
I need help combining two sine waves
How about using cos() instead of sin() and adjusting your ending time: f=1000; n=10; T=1/f; t=(0:T/100:n*T - T/2); s = cos(...

1 month ago | 0

Answered
make vectors same length using min function
How about x = [2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016]; y = [0, 0.05, 0.1, 0.15, 0.2]; a = [2...

1 month ago | 0

| accepted

Answered
Find index of a nearest value
Another solution x = [1 2 3 4 5 6 11 15 21 51 52 54 100 101 151 201 251 301 401]; targetValue = 10; [~, index] = min(abs(x - ...

1 month ago | 1

Answered
How to detect right triangles from an image and find the three side lengths of each triangle?
See my Image Segmentation Tutorial in my File Exchange: Image Analyst's File Exchange It's a generic, general purpose demo of ...

1 month ago | 0

Answered
warning in serial properties
If you look in the help, it will tell you. Use serialport instead. I figure you can figure out how to change your code as well...

2 months ago | 0

Answered
Align image to 3d point cloud
You'd have to somehow project your 3-D point cloud onto a 2-D plane so it can be compared to your 3-D image. But then some of t...

2 months ago | 0

Answered
change the color of curve from blue to any color and make it bold
You can specify the color as a 3 element vector with values between 0 and 1, or use one of the built in colors like 'r': y = ra...

2 months ago | 1

Answered
what toolbox to include for regression
For these few data points, and for a case like this where the best fit might simply be a line, you can use the build-in polyfit ...

2 months ago | 1

Answered
MATLAB editor configuration text extremely small
What is the "find bar"? Some of the fonts might still be controlled by the operating system so if you can't change a font siz...

2 months ago | 0

Answered
Why does my matlab code cannot detect the number of periods in a specific time range
Is locs_gelb the yellow signal? It looks like you've already determined how many cracks you have and your loop simply inspects ...

2 months ago | 0

Answered
I have the wrong code. How should I modify it to accomplish the goal?
That should be right, but delete lines 4-6. They should not be there. You pass in the base and height with your test function,...

2 months ago | 0

Answered
How to remove noise of low frequency signals
One way is use envelope, envspectrum, or audioEnvelope. Once you have the envelope, just subtract the lower curve of the envelo...

2 months ago | 0

Answered
what kind of plot is useful for comparing two matrices?
Why a plot and not a 2-D image showing differences? What would your x axis represent? If you treat your matrix as an image the...

2 months ago | 1

Answered
How to find repeated patterns of combination of numbers in the rows of a matrix
I don't have time to try anything for you now, but did you try ismember?

2 months ago | 0

Answered
real-time ROI and scatter plot in app designer
Once you have the ROI, you can get the x and y coordinates from the roi object. I didn't look at your code but when you then st...

2 months ago | 0

Answered
How can I connect the upper endpoint of the red curve to the red dot while keeping the curvature nearly the same?
Try using plot after you use scatter to draw a line from the last point on the curve to the marker you placed with scatter(): f...

2 months ago | 1

Answered
How to draw an uncertain number of sub-images in one coordinate in app designer?
Perhaps you want stackedplot. help stackedplot

2 months ago | 0

Answered
error
The main problem is exactly what it said and that is your script is called image.m which will take priority over a very importan...

2 months ago | 0

Answered
MatLab stays on Run forever and doesn't generate image file
Usually when there is an infinite loop it's with a while loop that never met the condition to exit, and (importantly!) didn't ha...

2 months ago | 0

Answered
Drawing the major and minor axis of an elliptical object in Matlab
This is discussed in this blog entry of Steve Eddins: https://blogs.mathworks.com/steve/2010/07/30/visualizing-regionprops-elli...

2 months ago | 0

Answered
Calculate Mean of vector in more decimals
It is already that. A = [0,1,9]; format short g m = mean(A) fprintf('Mean with 30 decimal places is %.30f.\n', m); format l...

2 months ago | 0

Answered
Peak coming at 50Hz in every data file. How to get rid of that
Find out what index the 50 Hz spike is in and zero it out. Something like f = fft(signal) [peakSignal, indexOfMax] = max(f) ...

2 months ago | 0

Answered
Matlab code to delete contents of a subfolders
Try this. At the bottom of the loop, put in a call to delete or whatever you want: % Start with a folder and get a list of all...

2 months ago | 0

Answered
Adjusting Convex Hull Area
Try regionprops % Make cross. cross = false(5, 5); cross(2:4, 3) = true; cross(3, 2:4) = true; % Measure area of convex hul...

2 months ago | 0

Answered
fenêtrage d'une image scannographie
help conv2 There are other windowed functions, for example stdfilt, imgaussfilt, etc.. It really depends on what you want to d...

2 months ago | 0

| accepted

Answered
how to do Open mouth detection
See articles on drowsiness detection here: https://www.visionbib.com/bibliography/motion-f725.html#Driver%20Monitoring,%20Eyes,...

2 months ago | 0

Answered
Using matlab in snaptostamps image processing
Try using ./ instead of / in the line where you assign demx.

2 months ago | 1

Answered
What is wrong with this code for finding out the number of significant digits after decimal?
See the FAQ https://matlab.fandom.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_(or_similar)_not_equal_to_zero? One way to compare float...

2 months ago | 0

Answered
Why does Matlab state that I do not have a valid license file?
I suggest the FAQ: https://matlab.fandom.com/wiki/FAQ#After_installation,_MATLAB_crashes_or_gives_an_error_message_when_I_try_to...

2 months ago | 0

Answered
inputdlg Window Not Showing
I ran it and it works fine for me. The input window popped up. Your script in not called inputdlg.m is it? Because that would...

2 months ago | 0

Load more