Is it possible to overwrite any of these variables:pi, eps, inf, i ? If so, how can it be undone?

 採用された回答

Matt Fig
Matt Fig 2012 年 10 月 12 日
編集済み: Matt Fig 2012 年 10 月 12 日
Those are not variables, but functions.
which pi
which eps
You can mask any function with another function or a local variable. Of course this is a bad habit and many questions on this very site have arisen because people say, "MATLAB is broken, the MAX function doesn't work!" Here's what they did:
max = 0:5;
max(max) % Oops, this will not find the largest element anymore!
To undo the mask, simply clear the variable. If you have made a function in the local directory with the same name as a MATLAB function, you will have to delete it to undo the masking.

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWorkspace Variables and MAT Files についてさらに検索

質問済み:

2012 年 10 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by