function n = nElements(tp) % NELEMENTS - Number of elements in the phase. % n = phase_get(tp.tp_id, 10);