Community Profile

# IDN

Last seen: 16 days ago Active since 2021

#### Content Feed

View by

Question

Cumulative Summation down a matrix in loop keeping total per section
Hello! I have 2 matrix, I would like to sum Matrix B values running cummulative given condition. The condition is that it start...

21 days ago | 2 answers | 0

### 2

Question

Hi all, I have the below parfor loop which is good when I am wanting to pass thru negative values to evaluate. I am getting the...

2 months ago | 1 answer | 0

### 1

Question

For loop to carry value down depending on another matrix value
Hello! I have the following issue. I have 2 matrices (MatrixA and MatrixB), I want to create a third one(MatrixC) that uses the...

4 months ago | 1 answer | 0

### 1

Question

Cumulative Summation down a matrix in loop
Hello! I have 2 matrix, I would like to sum Matrix B values cummulative given condition. The condition is that it starts to s...

5 months ago | 2 answers | 0

### 2

Question

For Loop that Checks 2 Matrices to create a Combined New one based on IF Statement
Good Morning, I have the following statement that check 3 data sets to combine an answer (1,0,-1) but i am not able to get it t...

5 months ago | 1 answer | 0

### 1

Question

Loop Rate of Change with Negative Values
Hello, I would like to use a loop to calculate across a table a rate of change ( (Current Value - 4thValue) / 4th Value)). I t...

5 months ago | 1 answer | 0

### 1

Question

Difference Calculation between current value and a specified prior value
Hello, I use the following to calculate percentage change: B = (diff(VMA)./(VMA(1:end-1))*100; What this does is (x1 - x2) / ...

5 months ago | 1 answer | 0

### 1

Sending an email from outlook.com using matlab
Try this mail = 'sender@mail.com'; Tomail = 'to@mail.com'; password = 'password'; port='587'; setpref('Internet','SMTP_Se...

6 months ago | 0

Question

parfor loop and decimal step increments in variable
Hello, What is the best way to be able to use a "parfor" loop when you have a variable that uses a decimal step as below... y...

6 months ago | 1 answer | 0

### 1

Question

Fractional steps in for loops
Hello! This is the first time i am running fractional steps in for loop and i am not sure wheter this is just comepletely wrong ...

6 months ago | 1 answer | 0

### 1

Question

Passing multiple Arrays to loop a Function and creating a 1 column array
Hello! I have the following but I am not sure what i am missing: A=ArrayA; (1,000x1) Double C=ArrayC; (1,000x1) Double V=Arra...

6 months ago | 2 answers | 0

### 2

Question

Multidimensional Array deleting entire max record keeping information across in order
I have the following loop: sz = 20; m = zeros(size(sz)); for i = 1:sz [max_val, position] = max(sh(:)); %Find Max Pos...

6 months ago | 1 answer | 0

### 1

Question

Finding position of a multidimensional array given manual value
Hello, I have the following: [max_val, position] = max(sh(:)); %Gets max value of sh and provides position [yAxInd,yCxInd...

6 months ago | 1 answer | 0

### 1

Question

IF Statement with Multiple Conditions and priority
I have a set of conditions but one has priority over the other example: Data = zeros(size(V)); for t = 1:numel(Data) if ...

7 months ago | 1 answer | 0

### 1

Question

Nested "For Loop" Array Size
How can i size my array to the output of a nested for loop? Thanks for the help! DataArray = nan(300,1); % this is the array ...

7 months ago | 1 answer | 0