nelson-website

Nelson

View project on GitHub
  • double:

Scalar:

--> pi

ans =

     3.1416

Vector:

--> [0.2:0.2:1]

ans =

     0.2000     0.4000     0.6000     0.8000     1.0000  

Complex:

--> 3*i

ans =

     0.0000 +   3.0000i
--> class(pi)

ans =

double

2D matrix:

--> rand(3, 3)

ans =

     0.5488     0.8443     0.5449  
     0.5928     0.6028     0.8473  
     0.7152     0.8579     0.4237 

N Dimensions matrix:

--> rand(2,2,2)

ans =

  <double>  - size: 2x2x2
(:,:,1) =


Columns 1 to 2
    0.836078768828884         0.337396161630750      
    0.0710360587108880        0.0871292969677597     
(:,:,2) =


Columns 1 to 2
    0.648171876557171         0.368241537362337      
    0.0202183991204947        0.832619842840359    

Sparse:

--> sparse(eye(3, 3))

ans =

  (1,1)     1.0000
  (2,2)     1.0000
  (3,3)     1.0000

Previous page