0
I have a Matrix 4:3 and would like to catch only 2:3.
Is it possible to delimited using the Delimitedfiles command? How should I use?
Q = convert(Matrix, ACT[2:3]) #Gostaria de omitir o 2:3
0
I have a Matrix 4:3 and would like to catch only 2:3.
Is it possible to delimited using the Delimitedfiles command? How should I use?
Q = convert(Matrix, ACT[2:3]) #Gostaria de omitir o 2:3
Browser other questions tagged julia
You are not signed in. Login or sign up in order to post.
Hello Raquel. Why not create a function that returns only the rows and columns you want from this matrix? For example, in a hypothetical algorithm, we have
m = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]
running through the matrix in a loop forfor i in matrix 
 for j in matrix 
 if (j != row AND J != col ) 
 print(matrix[i][j]
ifrow = 0
andcol = 0
temos[[6,7,8],[10,11,12],[14,15,16];
– Felipe Maia
Hi Felipe, thank you so much for the help. I did exactly how you posted and it didn’t work, it appeared this: invalid iteration specification. I don’t know if at the time I tried to put my data did something wrong, because the "for" you posted makes all the sense rsrsrs
– Raquel Santos
You can edit the question and put an example of Matrix 4:3 and what would 2:3 look like you need on output? Maybe, make it easy to answer :-)
– Gomiero
Hi Gomeiro, thanks for the suggestion. I have a dataframe extracted from a . CSV with 4x3. I would like to view only the numbers that are on this dataframe. Way out I need. 87 0 0 11
– Raquel Santos
Let’s see if I understand...Dataframe has 4 columns and 3 rows and you need to extract all elements that are in the first 2 columns (and 3 rows)? That’s it?
– Gomiero