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

Categories

Asked:

on 27 Jun 2020

Answered:

on 27 Jun 2020

Community Treasure Hunt

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

Start Hunting!