Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Thanks for the answer. Suppose I want to create a 2D matrix and I have to access its rows or columns or an individual elements. My data type caan be int/float/real number. What can be a solution in this case. Sorry I am quite new user of sage.

Thanks for the answer. Suppose I want to create a 2D matrix and I have to access its rows or columns or an individual elements. My data type caan be int/float/real number. What can be a solution in this case. An equivalent MATLAB code can be like this.

a = 0

b = 0

c = 0

for i = 1:10

for j = 1:10

  b = b +1

  c(i,j) = b

end

end

d = c(1,2)

Sorry I am quite new user of sage.