Daniel Lee
Followers: 0 Following: 0
Feeds
提问
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...
4 years 前 | 2 个回答 | 0
2
个回答提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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: ...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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...
4 years 前 | 1 个回答 | 0
1
个回答提问
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 ...
4 years 前 | 1 个回答 | 0