Thanks for your guide. Now the svd works for me now.
However, there is one thing confused me. The following codes will give an assertion fail until I specify the svd function to gesdd('A',A, S, U, V) or gesdd(A, S). Therefore I'm confused by the jobz option. Can somebody simply explain about the "O","N","A","S" option?