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

1 vue (au cours des 30 derniers jours)
christian ahmed tahal
christian ahmed tahal le 1 Nov 2016
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

Réponses (1)

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

Catégories

En savoir plus sur Dates and Time dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by