フィルターのクリア

How to display a matrix as a picture?

1 回表示 (過去 30 日間)
Ege Gurtan
Ege Gurtan 2018 年 6 月 14 日
コメント済み: Ege Gurtan 2018 年 6 月 14 日
I want to save a matrix in the matlab as an image to use in microsoft word. Let's say
A= [0 1; 2 3]
I want to save this (or display it) as a picture like this:
Is it possible to do?

回答 (1 件)

Sandro Lecci
Sandro Lecci 2018 年 6 月 14 日
Hi,
What about the function imagesc ?
A = [0 1; 2 3];
imagesc(A);
colorbar;
Best,
  1 件のコメント
Ege Gurtan
Ege Gurtan 2018 年 6 月 14 日
Sorry but this code gives the following
I need a picture like this

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by