how can I extract these cell array from

回答 (1 件)

Voss
Voss 2021 年 12 月 7 日

0 投票

function out = parse_url_options(url)
idx = find(url == '=');
s_idx = find(ismember(url,'?&'));
e_idx = find(ismember(url,'&#'));
ni = numel(idx);
out = cell(ni,2);
for i = 1:ni
out{i,1} = url(s_idx(find(s_idx < idx(i),1,'last'))+1:idx(i)-1);
out{i,2} = url(idx(i)+1:e_idx(find(e_idx > idx(i),1))-1);
end

カテゴリ

ヘルプ センター および File ExchangeMatrices and Arrays についてさらに検索

製品

リリース

R2021b

タグ

質問済み:

2021 年 12 月 7 日

編集済み:

2021 年 12 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by