photo

Daniel Lee


Last seen: ungefär 4 år ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


looking up entire matrix for if then loop
Given A=[1 2 3 4 5 ] I want to see when A > 1 and count how many times that was true (output should be 4 times) I want to see...

ungefär 4 år ago | 2 answers | 0

2

answers

Question


Output to an array or matrix
Using For and If loop, I got 5 separate outputs, ans = 1, 2, 3, 4, 5 Is there a way to automatically create an array with abov...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


Index exceeds the number of array elements error
When I run below code, I get error: Index exceeds the number of array elements (5). Can someone please help me understand why I...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


how to call out specific cell in a matrix
If I have A=[1,2,3,4,5] B=[6,7,8,9,10] C=[1,2,3,4,5] If there a way to call out specific position at each matrix so that: ...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


create an array with an output from a loop
Is there a way to create an entirely new array with an output from a loop? For example: If a condition is met, increase or dec...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


Subtracting 2 cells in an array
Given: A=[1,3,5,2,6,1]; Is there a function where I can get a difference of first and following cell in above matrix? For exa...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


Matrix comparison with unequal sized matrices
Hi Let's say I have: A = [A1, A2, A3, A4, A5] B= [B1,B2,B4,B4,B5] N = counter If I want to: Compare B1 to A2. If B1 is gre...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


Selective summary of matrix array
Hi, I'm trying to create 1 x 5 matrix called A with following information: Given: Let's say r=exprnd(5,1,5) yields following ...

ungefär 4 år ago | 1 answer | 0

1

answer