フィルターのクリア

Save a matrix and load it and visualize it with imagesc?

2 ビュー (過去 30 日間)
Alberto Paniate
Alberto Paniate 2020 年 11 月 16 日
編集済み: Ameer Hamza 2020 年 11 月 16 日
Hi,
I have a matrix (called Ebin2) that represents a light field. First I would like to save it on my desktop and I have done:
filename = 'path\MatriceCentri.mat';
save( filename, 'Ebin2' );
when i want to visualize this Ebin2 I can write figure,imagesc(Ebin2(:,:)) and it works.
If I want to open it, for example in another programme, I have tried with load and then
figure,imagesc('name')
But I have errors.
How can I open a mat and visualize it with figure,imagesc()?

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 11 月 16 日
編集済み: Ameer Hamza 2020 年 11 月 16 日
How are you loading the .mat file. If you load it by double clicking, then following should work
figure,imagesc(Ebin2)
If you want to load it programmatically, then try this
filename = 'path\MatriceCentri.mat';
data = load(filename);
figure,imagesc(data.Ebin2)

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by