Neha, You probably did not place the program / code (spa_sf.m) in the MATLAB's search path. Try running the program after moving the file "spa_sf.m" to the MATLAB's search path or to the current directory. Alternatively, you can set the path to the directory where the file "spa_sf.m" is stored on your computer. (From the Menubar, File >> Set Path...)
The beauty rests in the simplicity of it all, but I am not claiming for its originality -- it's all there in the MATLAB tool package. I decided to share "this code" mainly because of its simplicity, and hope that you will find it useful in any way.
Neha, You probably did not place the program / code (spa_sf.m) in the MATLAB's search path. Try running the program after moving the file "spa_sf.m" to the MATLAB's search path or to the current directory. Alternatively, you can set the path to the directory where the file "spa_sf.m" is stored on your computer. (From the Menubar, File >> Set Path...)
It is not working. I am trying to round off a matrix which contains double values, it shows the error:
Undefined function or method 'spa_sf' for input arguments of type 'double'.
Neha, You probably did not place the program / code (spa_sf.m) in the MATLAB's search path. Try running the program after moving the file "spa_sf.m" to the MATLAB's search path or to the current directory. Alternatively, you can set the path to the directory where the file "spa_sf.m" is stored on your computer. (From the Menubar, File >> Set Path...)
It is not working. I am trying to round off a matrix which contains double values, it shows the error:
Undefined function or method 'spa_sf' for input arguments of type 'double'.
Comment only