How to turn the string {'sin(30);'} into a command ,such as a = sin(30)=-0.9880 ?

5 ビュー (過去 30 日間)
Lisa Wu
Lisa Wu 2013 年 1 月 29 日
There is a cell y = {'sin(30);'}, how can i get the 'sin(30)' as a command ,such as
a = function(y) = sin(30) = -0.9880
Thank you!

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 29 日
  1 件のコメント
Lisa Wu
Lisa Wu 2013 年 1 月 29 日
It is just what i want! Thank you very much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by