Question

When I try to implement the example for solve, x is returned

When I try to implement the example for solve in the Matlab Documentation I get solx = x, rather than solx = pi/2 like in the do...

alrededor de 4 años ago | 0 answers | 0

Question

Add the rows of a Matrix until a certain value.

Hi All, I have this code which will add values in a vector until a certain value and then give the corresponding location. Howe...

más de 5 años ago | 2 answers | 0

Question

How to find the index of the median of a matrix.

Hi All, Just like the function [M, I] = max(a) where a is matrix, I need to do this for median. The matrix that I will be tes...

más de 5 años ago | 3 answers | 0

Question

Combine output from for loop into one long vecor, then put that row into a cell.

Hi all, I have this code, and it works how I would like for the first row, but I am having trouble generalizing it. y ...

más de 5 años ago | 1 answer | 0

Question

How to combine the matrices that are output by the for loop.

Hi all, I am trying to combine all the outputs of a for loop into one large matrix. All the outputs are matrices. Here is my...

más de 5 años ago | 1 answer | 0

Question

Sample from the previous sample, whole rows.

Hi all, My goal here is to combine these two codes that I have. The first code uses randsample from the statistics library, a...

más de 5 años ago | 1 answer | 0

Question

Take samples from the previous sample

Hi all, I have set of data, the size doesn't really matter. Lets call it x1. I want to take a random set of values from x1 and...

casi 6 años ago | 2 answers | 0

Question

Shift rows by different amounts

I have a N^2 x N^2 matrix where N = 4, and I wish to shift rows 1, 5, 9, and 13 by 0. Rows 2, 6, 10, 14 by 4. Rows 3, 7, 11, 15 ...

casi 6 años ago | 2 answers | 0

Question

Perform Operation Only on Specified Rows.

I have attempted to modify this code that circshifts the even rows a specified number of times, however I would like to make it ...

casi 6 años ago | 1 answer | 0

Question

Perform Operation on only even rows.

How would I go about performing an operation only on the even rows. For example, you have matrix A and you want to cirshift only...

casi 6 años ago | 1 answer | 0

Question

Transition Matrix that compares two elements to the next two elements.

Hi all, I am trying to modify this code to create a transition matrix that compares two elements to the next *two* elements. A...

casi 6 años ago | 1 answer | 0

Question

How would I go about modifying this code so that it will bin a set of 4 elements?

I have this following code where the is a pair of [ic(k), ic(k+1)]. Is there any way to modify it so that you can bin [[ic(k), i...

casi 6 años ago | 0 answers | 0

Question

Error Using Accumarray, Third input SZ must be a full row vector with one element for each column of SUBS

Hi All, I am having trouble using accumarray. I am getting the following error and I am having trouble figuring out why. Thanks...

casi 6 años ago | 2 answers | 0

Question

Why am I receiving this error when trying to implement sparse?

I am trying to modify this code from file exchange. It works perfectly, but it won't allow me to use data that includes zeros. I...

casi 6 años ago | 1 answer | 0

Question

Implementating the use of strfind with a for loop

I am attempting to write a transition matrix and to do so I will be comparing the current state to the next state. It seems like...

casi 6 años ago | 2 answers | 0