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

Answered
Create a series of variables with names that include numbers
See the FAQ: https://matlab.fandom.com/wiki/FAQ#How_can_I_create_variables_A1,_A2,...,_A10_in_a_loop?

3 years ago | 0

Answered
How to find curved length of an object inside a channel with reference to channel height?
Why can't you keep your camera still so that your tube is always in the same location instead of being virtually anywhere in the...

3 years ago | 0

| accepted

Answered
Error in my code
You can't do this: 51=1; 52=1; 53=1; Fifty one is NOT one, and it makes absolutely no sense to try to send a constant n...

3 years ago | 0

Answered
Why do I get "Array indices must be positive integers or logical values"
See the FAQ for a thorough discussion: https://matlab.fandom.com/wiki/FAQ#%22Subscript_indices_must_either_be_real_positive_int...

3 years ago | 0

Answered
object recognition in image
Depends on your images and your target object. For widest range of how things look, you should investigate Deep Learning CNN cl...

3 years ago | 0

Answered
I am a begginer. I got error saying "Not enough input arguments." etc
Try this: IndexImg = ones(size(InputImg), class(InputImg));

3 years ago | 0

| accepted

Answered
the avarage value for a video
See attached demo.

3 years ago | 0

| accepted

Answered
How to extract data from variable
What does this show: whos data I need to know what kind of variable it is. It doesn't look like a cell array. It looks more ...

3 years ago | 1

Answered
Error - Error using im2double
Your code does not use im2double. And you did not post the entire error message (all the red text). I know because the line nu...

3 years ago | 0

Answered
Dimming an Image with a new max?
Try dimmed = rescale(orig, new_min, new_max); For example dimmed = rescale(orig, 0, 157); % Linearly scale image to now go be...

3 years ago | 0

Answered
Help with matlab script
You had an extra "end" between step 4 and 5, and V_interpolated is not defined. Was it supposed to be interp_speeds instead of ...

3 years ago | 0

Answered
Find (local?) maxima when two maxima are adjacent to each other (maybe using islocalmax or findpeaks?)
If it's also a global max, you can do freq = [37 37 23 1 1 1]; [~, indexes] = find(freq == max(freq)) Works no matter if the ...

3 years ago | 1

Answered
How to reconstruct a corrupted image?
I don't know what the "upper layer" is. First you can call rgb2gray() to convert it to gray scale. But after that there is a ...

3 years ago | 0

Answered
MATLAB R2013b
What did the sales people say when you called them? You did call them, right?

3 years ago | 0

Load more