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

1 回表示 (過去 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 Center および File ExchangeNumeric Types についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by