필터 지우기
필터 지우기

how can I extract these cell array from

조회 수: 1 (최근 30일)
Manav Divekar
Manav Divekar 2021년 12월 7일
편집: Manav Divekar 2021년 12월 7일
how can i write a function for thi

답변 (1개)

Voss
Voss 2021년 12월 7일
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

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by