Undefined function 'sind' for input arguments of type 'char'.

1 view (last 30 days)
Guys I'm having a problem i don't know what is the cause. I was asked to determine what kind of triangle if its in 3d. The part in else always gives me error i dont know why can someone help This is my code
p=input('What is the point system of first point ','s')
if strcmpi(p,'RCS')== 1
p1=input('coordinates ');
elseif strcmpi(p,'CCS')== 1
p1=input('coordinates ');
p1=([p1(1)*cosd(p1(2)), p1(1)*sind(p1(2)),p1(3)]);
else
p1=('coordinates ');
p1=([p1(1)*sind(p1(2))*cosd(p1(3)),p1(1)*sind(p1(2))*sind(p1(3)),p1(1)*cosd(p1(2))])
end

Answers (1)

David Goodmanson
David Goodmanson on 1 Nov 2016
Christian, on the third line before the end you need p1 = input('coordinates')

Categories

Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!