Undefined function 'cos' for input arguments of type 'char'. Error in solution (line 14)

What is wrong with line 14 of my script which is written as follows:
cos_AOI = cos(am(a))*cos(location_filename(:,2)) + sin(am(a))*sin(location_filename(:,2))
Gdirect = location_filename(:,4)*cos_AOI

Catégories

En savoir plus sur Entering Commands dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by