Answered
How do I read each frame of a video?
See attached demos where I do that.

3 years ago | 0

Answered
Interpolate to fill missing values in a temperature Matrix by considering the altitude (stored in a separate matrix)
What exactly does "missing" mean to you? You can't have "holes" in the matrix. The values must either be nan, 0, or some other...

3 years ago | 0

Answered
File is not found in current folder or on the Matlab path.
You get that message when the m-file you're in, in the editor, and trying to run, does not live in the "Current folder" shown in...

3 years ago | 0

Answered
How can we remove an object from the thermal image?
Try this: rgbImage = imread('60_N1_4.png'); subplot(4, 1, 1); imshow(rgbImage); axis('on', 'image') croppedImage = rgbImage...

3 years ago | 0

Answered
When creating an app, how do you plot points on top of a line on a UI axis?
Try xline or yline % Get limits of axes xl = xlim yl = ylim xine(xl(1), 'Color', 'r', 'LineWidth', 5) % Draw line along left...

3 years ago | 0

Answered
how to plot a bar graph using for loop?
OK, your first part is what I gave you in my answer : https://www.mathworks.com/matlabcentral/answers/1956714-invalid-use-of-ope...

3 years ago | 1

| accepted

Answered
invalid use of operator for matlab loop?
This works: % Load the data from the .xlsx file data = readtable('Final_COVID_Data (1).xls'); % Initialize count values for e...

3 years ago | 1

| accepted

Answered
how to write exponential equations in matlab
This works: x = [0.3, 0.4]; % [x1, x2] g = MyFunction(x) function g = MyFunction(x) g(1) = 2+4*x(1)*exp(2*x(1)^2+x(2)^2); ...

3 years ago | 0

Answered
can someone help with this error please
x1 has 41 elements while x2 has 45 elements, so how can you subtract them?

3 years ago | 0

Answered
How to classify image in standard alone application ?
Are you sure you shipped all the files you were supposed to (like the .exe and the .mat files)? Did you ship a sample image tha...

3 years ago | 1

Answered
ocr not recognizing some numbers
ocr needs the image of the letters or numbers to be at least 20 pixels high. I don't think yours are. If your digits are alway...

3 years ago | 0

Answered
Help in creating video for particle trajectory
Try this: % Demo to create a movie file from a quadratic curve plot, and then optionally save it to disk as an avi video file. ...

3 years ago | 0

Answered
Referenced White Balance of an image
This is the best algorithm I've run across: Mark Grundland Color Histogram Specification by Histogram Warping Sorry, I don't h...

3 years ago | 0

Answered
Function for visualisation of raw data -Ovarian cancer
Try this: load('OvarianCancer.mat') plot(X, '-'); grid on; Do you want to make a model of it? Do you have any ground truth ...

3 years ago | 0

Answered
Help in creating video for particle trajectory
See attached demo where I make a movie of a graph that changes over time. Adapt as needed.

3 years ago | 0

Answered
I have the following signal with some peaks and some valleys. Is it possible to make the baseline zero?
How about you threshold to extract everything between 0 and -0.5? Then fit a line to it and subtract it from the original signa...

3 years ago | 0

Answered
Finding an Object with multiple labels in another image
What do you know about that trashman? Do you know it's always in the lower left? What do you know about the other images? Wil...

3 years ago | 0

Answered
fill a matrix within a loop
Here's what I get, after adding comments and clarifying the variable names.: fileName = 'resh_matr_mat_fil_non_bool.mat'; load...

3 years ago | 0

Answered
How do I get the a/y axes labels to show correctly?
You're not setting all the labels for those plots, specifically, you're not setting the vertical axis label for the bottom two p...

3 years ago | 0

| accepted

Answered
Coordinates of markers in picture
Use regionprops to find the centroid. Then use bwboundaries to find the coordinates of the boundary of the square. Find the di...

3 years ago | 0

Answered
How do I find unique points in an array in a certain context?
Try this: time = [ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19]'; x_coord = [ 1 1 1 rand(1,6) 1 1 1 rand(1,5) 1 1]'; y_co...

3 years ago | 0

| accepted

Answered
How to find the closest rows (positions/entities) in two mby3 matrixes?
Try this. Adapt as needed: % Create sample data. xyz1 = rand(4, 3); xyz2 = rand(4, 3) + 1.5; plot3(xyz1(:, 1), xyz1(:, 2), ...

3 years ago | 0

Answered
Difficulty in understanding Dynamic time warping plots
The x axis is in elements or indexes. If you want it in millseconds you have to create an x vector and use it in plot x1 = lin...

3 years ago | 0

Answered
Why do I get a 0s list with just the first value is correct?
You didn't look at the size. Try s = numel(X) or s = size(X, 2)

3 years ago | 0

Answered
How to deseasonalize this temperature record?
If you have the Signal Processing Toolbox, I'd use a Savitzky-Golay filter, sgolayfilt, with a third order polynomial and a wind...

3 years ago | 0

| accepted

Answered
Moving standard Deviation and Average
If you want to slide the 15 element window along an element at a time, use movmean and movstd. If you want to move in "jumps" ...

3 years ago | 0

| accepted

Answered
A faster and more compact way to create a list of distances among all the pairs of points
Try pdist2 % Input (x and y coordinates of 6 points) x = [1 2 2 3 4 5]; y = [1 2 3 7 2 5]; xy = [x(:), y(:)] % Get distance...

3 years ago | 1

Answered
The cause of the error related to statistical functions when using EEGLAB
I have this problem with Eigenvector's PLS toolbox. There are several functions (skewness, dataset, etc.) that they claim they ...

3 years ago | 1

| accepted

Load more