フィルターのクリア

Function with value after string

2 ビュー (過去 30 日間)
Alejandro Fernández
Alejandro Fernández 2020 年 7 月 26 日
回答済み: Alejandro Fernández 2020 年 7 月 26 日
Hi, i want to create a function with the same idea as the plot function when you write 'Marker' and then you put '+' it recognize de marker type, or when you put 'MarkerSize',15 etc.
In my case I need:
  • 'method','...'
  • 'scale',..
  • 'plott',..
Does someone know how to implement that?

採用された回答

Alejandro Fernández
Alejandro Fernández 2020 年 7 月 26 日
I found the solution, thank you so much.
if isempty(find(strcmpi(varargin,'method'), 1))
method = 'csape';
else
method = varargin{find(strcmpi(varargin,'method'), 1)+1};
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by