Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Problem with regex in GUIDE

2 ビュー (過去 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