Community Profile

# K

### University of Toronto

34 total contributions since 2011

Contributions in
View by

Posted

plot() and errorbar() on different intervals
Hi, I want to make a plot where the errorbars are situated on a different interval than the plot's data. Here's sample code: t...

3 years ago | 1431 views

Responded

Re: Identifying Upward and Downward Trends
Another possibility: It seems that if I numerically integrate the two types of data using the trapz() function, I get distinct r...

3 years ago | 3005 views

Responded

Re: Identifying Upward and Downward Trends
I think I have a direction: If I use the function peakdet (http://www.billauer.co.il/peakdet.html) I can find the maximums and ...

3 years ago | 3005 views

Responded

Re: Identifying Upward and Downward Trends
The original data is tracking the minimums of propagating sine waves in a specific window. Sometimes these waves move from left ...

3 years ago | 3005 views

Posted

Identifying Upward and Downward Trends
Good evening, I have a single set of data that I'd like to delineate. I have separated the data into the two types of categorie...

3 years ago | 3005 views

Responded

Re: Parallel to line through point without slope calculation
This is magnificent! Thank you so very much, Mr. Stafford.

3 years ago | 4546 views

Responded

Re: Parallel to line through point without slope calculation
Hi Steve, Thank you for your input, I forgot to mention in the post itself (as I did in the title of it) that I'd like to avoid...

3 years ago | 4546 views

Posted

Parallel to line through point without slope calculation
Hello, I have two points (a,b) that make up a line, and a third point (c). I'd like to draw a line (length x) that is parallel ...

3 years ago | 4546 views

Posted

flipud range of cells
I have a cellArray = cell(1,100). Each cell is a matrix sized double(10,2). I can flip the values within all of the matrices wi...

3 years ago | 1012 views

Responded

Re: Successive Matrix Midpoint Operations
Bruno, this is excellent and so compact! I'm going to try to see if I can work in my own operation into the code. Although the ...

3 years ago | 1760 views

Responded

Re: Successive Matrix Midpoint Operations
Hi! I have no idea why I put 5.5 that first time around, it would indeed be 5. The matrix should always divide evenly by twos...

3 years ago | 1760 views

Posted

Successive Matrix Midpoint Operations
I'm having a tough time understanding how to do this properly. Imagine I have a matrix = NaN(9,1) with values at matrix(1,1) = ...

3 years ago | 1760 views

Responded

Re: Summing consecutively signed integers
My apologies, I was incorrect. Your code works fine. The input I was giving was incorrect. Many thanks!

4 years ago | 2580 views

Responded

Re: Summing consecutively signed integers
Thanks for the shortened version. There seems to be a slight error here though. Best illustrated through this: X inputs: 0 0 -0...

4 years ago | 2580 views

Responded

Re: Summing consecutively signed integers
For those interested, here is my for-loop solution. Please note that the first position in my array x is always a zero, hence m...

4 years ago | 2580 views

Responded

Re: Summing consecutively signed integers
Darn, I was afraid of that. It was worth a try! Thank you.

4 years ago | 2580 views

Responded

Re: Summing consecutively signed integers
Thank you for the reply, Mr. Stafford. This would indeed work for the specific example I gave, but it needs to work for differe...

4 years ago | 2580 views

Posted

Summing consecutively signed integers
I'll start with an example: %My array: x = [-1; -2; 5; 3; -4; -3; 1; 3] %Desired output: y = [-1; -3; 5; 8; -4; -7; 1; 4] I u...

4 years ago | 2580 views

Responded

Re: Background Removal
IA, it seems your response did not go through?

4 years ago | 2473 views

Responded

Re: Background Removal
Good afternoon IA, Thank you for your response. I notice that calling the 'mode' function takes a significantly longer time th...

4 years ago | 2473 views

Responded

Re: Background Removal
The mean of the picture over the 3d matrix seems to do a fairly good job of removing unmoving objects. Trying to work out the mi...

4 years ago | 2473 views

Posted

Background Removal
Good afternoon! I have a 3d grayscale image sequence (essentially a movie at 14fps stored in a 3d matrix) in which there is onl...

4 years ago | 2473 views

Responded

Re: Including NaNs
Thanks everyone for your help! Everything works the way I'd like it to with the initial response. For the last response: I only...

4 years ago | 1536 views

Posted

Including NaNs
Hello. I have an array that I have to normalize that sometimes includes NaNs like so: a = [1 2 3 Nan 5 Nan 7 8] I extract the ...

4 years ago | 1536 views

Responded

Re: Fitting a curve to an image
Hello ImageAnalyst, I hope this is the correct thread (instead of starting a new one) to ask what I would like, as it is very r...

4 years ago | 6972 views

Responded

Re: Using structfun
Oh wow. Why did I not ever see this before? This will have me rewrite *so* much code, but all of the better! I knew that eval wa...

5 years ago | 2505 views

Responded

Re: Using structfun
Does this make sense? Currently, I am using the eval function to do this. for k = DATAINDEXES(1,:) end I'm trying to get rid ...

5 years ago | 2505 views

Posted

Using structfun
Hello, I have a structure which has a DATA.DATA_x arrangement where x is not in consecutive order. I want to apply the following...

5 years ago | 2505 views

Responded

Re: Grouping Data
Seems that sorting with kmeans() works for now? I'm not sure why my outputs changed so much before, but it seems to have become ...

5 years ago | 1055 views

Posted

Grouping Data
Hello. Newbie here. I have a list of values stored in a matrix. Currently, the values are the Y positions of 18 points that are...

5 years ago | 1055 views