Re: Iterating over a Matrix type

11 views
Skip to first unread message

Taher Anjary

unread,
Nov 4, 2021, 9:45:32 AM11/4/21
to COMP541
Hi there,

I'm trying to iterate over the rows of a matrix because I need to vcat each of the rows to other matrices. The problem is, each row ends up becoming a SubArray type which I cannot convert back into a Matrix type(of shape 1x10). Any suggestions on how to proceed?

code:
Screenshot from 2021-11-04 16-44-03.png
output:
Screenshot from 2021-11-04 16-42-41.png

best,
Taher Anjary

ILKER KESEN

unread,
Nov 4, 2021, 11:29:32 AM11/4/21
to Taher Anjary, COMP541
Taher hi,

Could you please supply a minimal working example which allows me to reproduce this issue?

Best.
- ilker

--
You received this message because you are subscribed to the Google Groups "COMP541" group.
To unsubscribe from this group and stop receiving emails from it, send an email to COMP541+u...@ku.edu.tr.
To view this discussion on the web visit https://groups.google.com/a/ku.edu.tr/d/msgid/COMP541/f7c2d5d7-b937-4646-b889-a102f4bbcff2n%40ku.edu.tr.
Reply all
Reply to author
Forward
0 new messages