Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Simple Matrix Assignment
#11
(Aug-04-2019, 07:32 PM)SheeppOSU Wrote:
(Aug-04-2019, 11:49 AM)m_llaa Wrote: The 2nd dimension of x has 2 elements. I want to fill the first element by y.
The first element of the second dimension would look like "x[1][0]". 1 For the second dimension and 0 to get the first element. When I try "x[1][0] = y", I get an error. I don't get an error if I do "x[1][0] = y[1][0]", so is this what you are trying to do.

Wrong wrong wrong
Please pay attention to my main question. It is clear.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Check if two matrix are equal and of not add the matrix to the list quest 3 811 Jul-10-2023, 02:41 AM
Last Post: deanhystad
  Can't modify a simple matrix Lewkiy 3 896 Feb-05-2023, 02:59 PM
Last Post: Lewkiy
  How to multiply a matrix with herself, until the zero matrix results peanutbutterandjelly 3 3,341 May-03-2021, 06:30 AM
Last Post: Gribouillis
  matrix from matrix python numpy array shei7141 1 3,680 Jan-16-2017, 06:10 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020