hyper text display problem: " and ' inside href = " "

조회 수: 2 (최근 30일)
raym
raym 2019년 5월 20일
편집: raym 2019년 5월 20일
disp(['<a href="matlab: system(''"C:\p q.exe" "D:\ w rd.txt", -n45'')','">click me to run a file</a>']);
The hyperlink terminated at system(', so I cannot click it to run the command.

답변 (2개)

Walter Roberson
Walter Roberson 2019년 5월 20일
편집: Walter Roberson 2019년 5월 20일
Code the inner " as &#34; or &quot;
  댓글 수: 1
raym
raym 2019년 5월 20일
It does not work:
system('&#34;C:\Program Files\Notepad++\notepad++.exe
Error: String is not terminated properly.

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


raym
raym 2019년 5월 20일
편집: raym 2019년 5월 20일
Also,the following hypet text does not show correctly unless modified:
before modify
disp('<a href="matlab: [~,~]=systemn(''notepad.exe'')"> * &quot;J n.A B&e;z s. C y <strong>8:</strong><em>13-31</em> (1997)&quot; </a>');
after modify: delete <strong>8:</strong>
disp('<a href="matlab: [~,~]=systemn(''notepad.exe'')"> * &quot;J n.A B&e;z s. C y <em>13-31</em> (1997)&quot; </a>');

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by