フィルターのクリア

Accessing Cell Array form Original Script and calling it into another Function

1 回表示 (過去 30 日間)
Frank Lehmann
Frank Lehmann 2020 年 7 月 11 日
回答済み: Image Analyst 2020 年 7 月 11 日
Type=input('Enter the Equipment Design, (TGF), (DOL) or (LSP)?\n','s');
C={Type};
I have the above script as part of a file and I want to call the variable C into another function as a cell array, In the above case Type can equal TGF or DOL or LSP?
What is the syntax for the code within the function file, the original script file is OK?
Which is better to call C as a Cell, String or Character Array considering that the variable C will form the basis as the Table variable name for a numeric (double) vector in the function?
Cheers,
Frank
  1 件のコメント
madhan ravi
madhan ravi 2020 年 7 月 11 日
Illustration of an example with a desired result would help.

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

回答 (1 件)

Image Analyst
Image Analyst 2020 年 7 月 11 日
Use questdlg() and contains().

カテゴリ

Help Center および File ExchangeDialog Boxes についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by