Community Profile

photo

Juan Pérez Álvarez


Last seen: etwa 2 Monate ago Active since 2022

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Repeat copies of array elements using for loop/while
Hi, I need create a code where the elements of an array are repeat: For example: % Create a simple vector: for i =1:4 Ve...

4 Monate ago | 1 answer | 0

1

answer

Question


Delete rows from a matrix using for loop
Hello, I need delete the zero rows from a matrix using for loops/while, I try this: Matrix = [1,1 ; 1,2 ; 0,0 ; 0,0 ; 3,1 ; ...

4 Monate ago | 2 answers | 0

2

answers

Question


Delete rows from a matrix using for loop
Hello, I need delete rows from a matrix based on a logical condition of an array using for loops: I need delete rows from thi...

4 Monate ago | 1 answer | 0

1

answer

Question


Delete zeros from an array using for loops
Hi I need delete zero elements of an array. Note: I know theres a lot of way to complete this task. Example: A = [1,0,2,3,...

4 Monate ago | 1 answer | 0

1

answer

Question


Matrix of two columns using two vectors
Hi. I need code for coordinate points (I need the program to always create a matrix(n,2) with two columns): For example A = [1...

5 Monate ago | 1 answer | 0

1

answer

Question


I need create a function for order pairs
Hi I nedd create a function for do something like this (using for loops) A = [1,2,3]; B = [4,5,6]; LA = length(A); LB = le...

5 Monate ago | 1 answer | 0

1

answer

Question


I need to read an array to see if it has repeated elements (using for loop)
For example: Vec = [2,4,4,6]; For this case, element 4 is repeated. And i want the code do something like this: iteration #...

5 Monate ago | 3 answers | 0

3

answers