HTML-based image display in uitable works on PC but not Mac?

1 回表示 (過去 30 日間)
Wilma
Wilma 2014 年 4 月 15 日
編集済み: Wilma 2014 年 4 月 18 日
I'm making a GUI for visualizing the images (.JPGs) in a database and allowing searches on them. To implement the visualization, I make a uitable of images. To do this, I set the Data property to HTML code that displays the image. It looks like this.
>> tableCode{1,1}
ans =
<html><center><img height=60 width=60 src="Users/lab/Documents/blah.jpg"></center></html>
>> set(handles.uitable2, 'Data', tableCode);
This compiles and works well on Windows computers, but the images are all broken on Macs. I checked and the path works and opening a document with the same HTML from tableCode in Safari shows the image correctly. How can I fix this?

採用された回答

Wilma
Wilma 2014 年 4 月 18 日
編集済み: Wilma 2014 年 4 月 18 日
I ended up solving this on my own... this site has good tips:
Essentially, it seems like the Mac version of MATLAB is stricter on file paths than Mac Safari or Windows.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by