필터 지우기
필터 지우기

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