The abbreviation of function cos and sin?

5 views (last 30 days)
Denizcan Alaca
Denizcan Alaca on 29 Dec 2012
I have a long matrix and i waana abbreviate my funcion cos and sin. For exmaple i wanna see cos and sin like c and s on the command window.haw can i do that.
  15 Comments
Denizcan Alaca
Denizcan Alaca on 30 Dec 2012
Edited: Denizcan Alaca on 30 Dec 2012
end?
i dont have end in my code.
i just write and input parameters for my inverse and forward kinematics and i need to read them.
Azzi Abdelmalek
Azzi Abdelmalek on 30 Dec 2012
After Edit, there is no 'end'. Ok did you try the above code? what is wrong?

Sign in to comment.

Answers (2)

Azzi Abdelmalek
Azzi Abdelmalek on 29 Dec 2012
Edited: Azzi Abdelmalek on 29 Dec 2012
C=@(x) cos(x)

Jan
Jan on 29 Dec 2012

Community Treasure Hunt

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

Start Hunting!