Question:

What is the purpose of this command in <span title="MATLAB?angles=[-90:180]*pi/180">MATLAB?angles=[-90:180]*p...</span>

by  |  earlier

0 LIKES UnLike

What is the purpose of this command in MATLAB?angles=[-90:180]*p...

 Tags:

   Report

1 ANSWERS


  1. The command first creates vector containing [-90 -89 -88 ... 178 179 180]

    There are 271 elements in the vector.

    That entire vector is then multiplied by pi/180, resulting a 271 element vector containing [-1.5708 -1.5533 -1.5359 ... 3.1067 3.1241 3.1416]

    Oh, by the way, you might want to insert a semicolon after the command like this:

    angles=[-90:180]*pi/180;

    Otherwise, Matlab will spew all 271 values to your screen

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions