Equations, scalars, and matrices

1 view (last 30 days)
Emmanuel
Emmanuel on 9 Feb 2014
Commented: Emmanuel on 9 Feb 2014
I'm supposed to write a program that takes an equation and will accept a scalar, a vector, or matrix.
I know to use ^ when dealing with scalars, and .^ when dealing with vectors/ matrices, but is there a way that will accept both?
I hope this question is clear.
Thanks,
Emmanuel

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 9 Feb 2014
You can use .^

More Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!