フィルターのクリア

How to I pass the char value dynamically

2 ビュー (過去 30 日間)
Praveen Choudhury
Praveen Choudhury 2015 年 11 月 2 日
コメント済み: Praveen Choudhury 2015 年 11 月 2 日
loc1 = 'D11'
loc2 = 'H11'
range = 'loc1:loc2'
range should be D11:H11 when I do loc1:loc2
How to do that?

採用された回答

Guillaume
Guillaume 2015 年 11 月 2 日
This looks like Excel type of coordinates, so not sure what this has to do with Matlab.
To get the string 'D11:H11' with your two variables:
range = sprintf('%s:%s', loc1, loc2);
%or
range = [loc1, ':', loc2];
Personally, I prefer the first form.
  1 件のコメント
Praveen Choudhury
Praveen Choudhury 2015 年 11 月 2 日
Thank You so much.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTiming and presenting 2D and 3D stimuli についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by