Code covered by the BSD License  

Highlights from
Approximation of 2-D Data by Natural Cubic Spline

image thumbnail
from Approximation of 2-D Data by Natural Cubic Spline by Dr. Murtaza Khan
Approximation (Data Fitting) by Natural Cubic Spline.

ans=isvec(x)
% return 1 if input argument is vecotor else return 0

function ans=isvec(x)
ans=0;
d=size(x);

if(length(d)>2) % not vector
    return 
end

[r c]=size(x);

if (r>1 & c>1) % not vector
    return
end

ans=1; % vector


% % % --------------------------------
% % % Author: Dr. Murtaza Khan
% % % Email : drkhanmurtaza@gmail.com
% % % --------------------------------
    

Contact us at files@mathworks.com