Got linspaces working