Differences

This shows you the differences between two versions of the page.

Link to this comparison view

documentation:language_reference:objects:matrix:functions:sub [2018/09/25 11:58] – created Simon Heinzedocumentation:language_reference:objects:matrix:functions:sub [2018/09/25 14:31] (current) – Added Code Example Simon Heinze
Line 11: Line 11:
  
 ===== Example ===== ===== Example =====
- 
-### 
-One of these days an example will appear here. 
-### 
  
 ==== Input ==== ==== Input ====
 <code Quanty Example.Quanty> <code Quanty Example.Quanty>
--- some example code+M = {{11,12,13,14,15,16,17}, 
 +     {21,22,23,24,25,26,27}, 
 +     {31,32,33,34,35,36,37}, 
 +     {41,42,43,44,45,46,47}, 
 +     {51,52,53,54,55,56,57}} 
 +      
 +print(""
 +print("Matrix.Sub(M,3)"
 +print(Matrix.Sub(M,3)) 
 + 
 +print(""
 +print("Matrix.Sub(M,2,4)"
 +print(Matrix.Sub(M,2,4)) 
 + 
 +print(""
 +print("Matrix.Sub(M,1,2,3,4)"
 +print(Matrix.Sub(M,1,2,3,4)) 
 </code> </code>
  
 ==== Result ==== ==== Result ====
 <file Quanty_Output> <file Quanty_Output>
-text produced as output+ 
 +Matrix.Sub(M,3) 
 +{ { 11 , 12 , 13 } ,  
 +  { 21 , 22 , 23 } ,  
 +  { 31 , 32 , 33 } } 
 + 
 +Matrix.Sub(M,2,4) 
 +{ { 11 , 12 , 13 , 14 } ,  
 +  { 21 , 22 , 23 , 24 } } 
 + 
 +Matrix.Sub(M,1,2,3,4) 
 +{ { 13 , 14 , 15 , 16 } ,  
 +  { 23 , 24 , 25 , 26 } } 
 </file> </file>
  
Print/export