Simplify error in matlab

I have this code: simplify(((sin*(x^2))*(sec*x))/(1+sec*x))
and getting this error: Error using sin Not enough input arguments.
Error in project1 (line 5) p6=simplify(((sin*(x^2))*(sec*x))/(1+sec*x))

Answers (1)

Sean de Wolski
Sean de Wolski on 29 Jan 2015
Edited: Sean de Wolski on 29 Jan 2015
sin*
Is not a valid expression... sin is a function that expects inputs:
sin(1)
What you are doing is
sin*(1)
which will give the same error. Same with sec

2 Comments

Bob
Bob on 29 Jan 2015
Thank you!
If it worked, please accept the answer to mark it closed.

Sign in to comment.

Categories

Find more on Using MATLAB Projects in Simulink in Help Center and File Exchange

Tags

Asked:

Bob
on 29 Jan 2015

Commented:

on 29 Jan 2015

Community Treasure Hunt

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

Start Hunting!