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

 채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 2월 9일

0 개 추천

You can use .^

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

질문:

2014년 2월 9일

댓글:

2014년 2월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by