Question

Solving System of Differential Equations with Multiple Variables using ode45

Lets say I have a system of six differential equations with multiple variables: dA = E - C + B - D dB = F - D + A - C .......

5 months ago | 1 answer | 0

Question

Creating Matrix based on grouping of elements in cell array

Say I have a cell array where each cell describes a group of numbers. I want a matrix that describes these groups in a logical m...

6 months ago | 1 answer | 0

Question

Finding All Combinations of Elements in a Vector

I want to create all combinations of a 1x6 vector, composed only of 1's and 0's. Starting with all zeros and ending with all one...

6 months ago | 1 answer | 0

Question

Sorting Equal Elements of Matrix into Groups in Cell Array

Lets say C is an nx2 matrix where n can range from 1 to 15. All elements of C can range from 1-6. I want to form groups in the f...

6 months ago | 1 answer | 0

Question

Deleting Rows inbetween NaN values.

I got a row vector that looks like this: V = [ 1 4 5 NaN 0 9 3 1 3 NaN 1 5 3 0 7 NaN 7 4 2 1 NaN 9 4 ]. I want to delete all the...

8 months ago | 2 answers | 0

Question

Modifying a Row Vector to Pair up Numbers

Say I have a bunch of random sequences of different lengths in a cell array: S1 = [ 4, 6, 3, 5, 1 ], S2 = [ 3, 3, 1 ], S3 = [ 2...

8 months ago | 1 answer | 0

Question

Counting how many times a number occured after a specific number

Lets say I have a sequence of numbers ranging from 1 to 4, S = [ 3 2 2 4 3 1 ]. I want a 4x4 matrix which tells me how many time...

8 months ago | 2 answers | 0

Question

How do I see which cell that the components of a vector land in, in a cell array??

Say I have a cell array, A, and a vector, B. I want to figure out which cell each component of the vector lands in. For example....

8 months ago | 1 answer | 0

Question

Simple Matrix Reduction Question. Ones and Zeros.

I have a NxM matrix full of ones and zeros. Each row (1:N) has exactly one, one, somewhere along of the columns. I want to make ...

8 months ago | 2 answers | 0

Question

Voronoi Diagram in Dashed Lines

I'm trying to plot a voronoi diagram using dashed lines instead of solid. I am using vectors X and Y. voronoi(X,Y,'r','LineSt...

8 months ago | 1 answer | 0

Question

For Loop Which Skips Numbers Based on Row Vector

I've got a row vector containing hunderds of random, ascending numbers. I need to run a for loop which skips these specific numb...

8 months ago | 2 answers | 0

Question

How do I create multiple column vectors from one big column vector?

I have two column vectors, objx and objy, both of which contain 20,160 floats. I need to dice it up every 48 iterations to creat...

8 months ago | 1 answer | 0