Im trying this but doesn’t seem to work:
A = {{1,2},{3,4}}
A[[1]][[2]] = 5;
How could I do that?
Currently I’m doing
list = {3,5};
A[[2]] = list;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your code is right, except for a minuscule error 🙂
You wrote:
The correct code is
Usually written as:
Remember to start your identifiers with lowercase letters, as capitals are reserved for system’s names