MATLAB Answers

'Find & Replace' ignores quoted strings

조회 수: 1(최근 30일)
K E
K E 6 Aug 2012
I am having a problem with the editor's 'Find & Replace' tool. I have a mfile containing containing quoted strings like
load('File1.mat') ;
load('File2.mat') ;
load('File3.mat') ;
load('File4.mat') ;
When I use Edit > Find & Replace to search for File or mat, they are not found. But when I search for load, it is found. It seems like the characters enclosed in single quotes are invisible to Find & Replace. Is that a known issue? I am using R2012a.
  댓글 수: 4
K E
K E 6 Aug 2012
Sigh. Yes, the Whole Word box was checked, and the problem disappeared when it was unchecked. Sorry to trouble everyone and will delete this question if anyone thinks it is warranted.

댓글을 달려면 로그인하십시오.

채택된 답변

K E
K E 6 Aug 2012
This is due to checking the Whole Word box. The problem disappeared when it was unchecked. I hope this spares someone else a silly mistake.

추가 답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by