질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 1 | 0

1

답변

질문


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년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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...

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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/...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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...

거의 8년 전 | 답변 수: 1 | 0

1

답변

질문


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...

거의 8년 전 | 답변 수: 3 | 0

3

답변

질문


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=...

거의 8년 전 | 답변 수: 2 | 0

2

답변

질문


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...

대략 8년 전 | 답변 수: 1 | 0

1

답변