Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Problem with regex in GUIDE

조회 수: 1 (최근 30일)
Luis Miguel López Santamaría
Luis Miguel López Santamaría 2017년 5월 14일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello everybody,
I'm trying to write a regular expression my code is the next one:
expression = 'pi|[0-9]\s[0-9]|pi';
aux = get(handles.intervalo, 'String');
index = regexp(aux, expression);
empty = [];
c = isequal(index, empty);
if c == 1
errordlg('Tiene que ser de la forma [a b]', 'Error');
end
The problem is when a I write a expression like [pi e] don't give any error can anyone help?
Thank you.

답변 (0개)

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by