Question


subtracting values in arrays and holding the result
Hi all, I have 2 vectors (inputs) B=[10.81 10.83 10.84 10.93 11.31 11.7 11.7 11.7 11.7 11.7 11.7 11.7 11.7 11.7]'; ...

7 years ago | 1 answer | 0

1

answer

Question


Subtracting elements within constraints
Hi all, I have a vector and I subtract each element from the previous one using the cumsum function like this B = bsxfun...

7 years ago | 2 answers | 0

2

answers

Question


Subtracting elements with constraints
Hi all, I have an array A and I need to subtract the elements of each column using the cumsum function: B=bsxfun(@minus, A...

7 years ago | 1 answer | 0

1

answer

Question


add values in arrays with positive and zero values
Hi, I have a two vectors a=[1 2 3 3 3], b=[0 0 1 0 2], I want to add them in such a way in order to get c=[1 2 4 4 6] whic...

7 years ago | 1 answer | 0

1

answer

Question


adding a value until a particular value
Hi, questions never end! I have an array 17x365 and some initial values in the first row. So I would like to add a part...

7 years ago | 1 answer | 0

1

answer

Question


subtracting elements in a vector
hi all, an easy question for you: I have a vector A= [0 1 4 10 18] how can I subtract the second element from the first, t...

7 years ago | 2 answers | 0

2

answers

Question


how to choose k values
hi all, I have an array of 365 values and I do some calculations with an index for k=1:365 However, I need to do some diff...

7 years ago | 1 answer | 0

1

answer

Question


replace an array with another array
hi all, I have an array A with dimensions 48x1 and i want to replace the elements 32:41 with another array B (10x1). how...

7 years ago | 1 answer | 0

1

answer

Question


subtracting a particular value until that the result becomes negative
Hi all, how can I subtract elements of a column until the point that the result is negative? example: A=[1 2 3 4 5 4 2 1 1...

7 years ago | 2 answers | 0

2

answers

Question


Make calculations based on previous results
Hi all, I have an array of 48x365, I need to make some calculations with the first column and use some of the results to do s...

7 years ago | 1 answer | 0

1

answer

Question


selecting elements from an array
hi all, I have an array 3x258, is there any way to create two different arrays where the first one will contain the columns t...

7 years ago | 1 answer | 0

1

answer

Question


subtracting a value from the first positive element
hi all I have this problem: let's say I have large array and I want to subtract the first positive value that apperas (in each c...

7 years ago | 1 answer | 0

1

answer

Question


adding next values in an array
hi all, I have a question I have a vector like this [1;2;3;-5;-6;2;3], when it's negative i would like to add in the next val...

7 years ago | 2 answers | 0

2

answers

Question


array average every 30 values
Hi again, I have an Array of 1440x31 and I would like to get another Array, that's calculates the average of every 30 elemen...

7 years ago | 1 answer | 0

1

answer

Question


Extracting n elemnts of an array
Hi, II have an array with dimensions [5568X1] and I want to extract every 48 values and put it in a different array (so 5568/...

7 years ago | 1 answer | 0

1

answer

Question


calculating the average from a large excel file
Hi again, I have a really large excel file which I have imported in Matlab. So it's a large array with dimensions : 588845...

7 years ago | 1 answer | 0

1

answer

Question


Subtracting elements in an array
hi there, I have an array lets say A=[10 9 10; 1 2 3; 4 5 6] How can create an array like this? B=[10-1 9-2 10-3;1...

7 years ago | 1 answer | 0

1

answer

Question


Call elements for a cell array
Hi there, I am a beginner so the question maybe will be silly for you: I have an cell 3x1 , where each element is an arra...

7 years ago | 3 answers | 0

3

answers

Question


multiply columns of an Array
Hi all, I am a beginner in Matlab and I am struggling with something. Lets say I have: A= [1 2 1;3 1 1]; B=...

7 years ago | 2 answers | 0

2

answers

Question


How a generate random numbers within a probabilistic range?
Hi there, I would like to generate random numbers for an input of 48 variables within a probabilistic range. I managed to get...

7 years ago | 1 answer | 0

1

answer