Community Profile

Contact

Top 5% contributor

I'll answer my own question... again. aoctool can't take more than one covariate and there's no way round it. However, there ...

accepted

0

Answered 1 year ago

I answered my own question again: In my case I had the option of changing the coordinates slightly - I wasn't trying to find ...

I solved this problem by taking each location of a peak, using linspace to create the numbers 90-180 (as many numbers as I had t...

After some fiddling I have found this to be the simplest (and most visually appealing) solution, so I will post it here in it's ...

Hi there, I have quite a simple question, simple because I'm sure Matlab can do this easily, I just don't know how. I want...

2 Answers

Asked 1 year ago

Hi everybody, I have recently been looking into parfor loops, mostly out of curiosity. I have lots of loops which follow t...

1 Answers

Asked 8 months ago

Hi everybody, I have a graph on which the user places a rectangle, I then want the user to be able to draw or modify another ...

Asked 9 months ago

Hi everybody, I have some general questions regarding the ksdensity function. I'm trying to compare the cumulative density fu...

Asked 10 months ago

Hi everybody, I would like to allow a user to draw a rectangle over a plot to highlight some data. This seems entirely possib...

Asked 12 months ago

Is there any way to run an ANCOVA in Matlab with more than one covariate? The aoctool function only seems able to accept an IV a...

Hi again everybody, I have pairs of coordinates [x,y] which I can use to plot a nice figure of lines. However, I need to use ...

Hi again everyone, I have a vector of data which I want to fit a sine wave to, I want the amplitude of the wave to remain con...

Hi again, I have another plotting question; I have 4 subplots and I want one of them to have a black background. Since I only...

Hi there, I have binary matrices (about 50 x 50 but this size changes) and I want to quantify the size of fields/blobs/island...

Asked 2 years ago

Hi, I am using scripts written by someone else a long time ago (who has long since gone) and I'm having trouble getting them ...

Hi all, I have some 2D cartesian position data (x,y,time) for a moving object, I would love the extract all of the points whe...

Asked 1 month ago

Hi all, I have a series of polar coordinates (ranging from -180 - 180 degrees), some of these coordinates are reflected in th...

Hi everybody, I was wondering (because it would be extremely helpful to a piece of code I am writing) whether it is possible ...

Asked 5 months ago

Hi everybody, I have a polygon defined by a number of vertex coordinates and I have a coordinate within this polygon. I would...

Hi everybody, I'm trying to compare 2d matrices (just 2 at a time) of identical sizes to see if they are similar, what I mean...

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

Solve this!

4 months ago

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

Regardless of input, output the string 'yes'.

Given a and b, return the sum a+b in c.

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

Hi All, I have a slight problem for which I'm sure there must be a Matlab function but I can't work out what it is. I have a ...

0 Answers

Over commoditization frustrates me. Who at MTW decided nanmean and mean2 were so fantastic they should be distributed among two ...

Hi all, I'm running an ANOVAN (n-way anova) using the Matlab anovan function on my data and 4 grouping variables (the first o...