subs(y1)
Caution: the result in this case would be a symbolic number; use double() on the result if you need a floating point number that MATLAB itself can compute with.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!