help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to save matrix as image?


From: Terry Duell
Subject: How to save matrix as image?
Date: Mon, 12 Sep 2011 11:06:42 +1000
User-agent: Opera Mail/11.51 (Linux)

Hullo All,
This should be simple enough, I have been doing it for a lot of the data I'm working with, but have been unable to to so with a particular matrix. I have a matrix (D1, 1209x1559x2) which I want to save out as a greyscale image using,
 'imwrite(mat2gray(D1),'results/D1_concatderiv.jpg');'
which gives me the error;
'error: mat2gray: mx_el_lt: nonconformant arguments (op1 is 1209x1559x2, op2 is 1x1x2)'
I thought I had done this on other occasions, but obviously not.
What am I missing?

Regards,
Terry Duell


reply via email to

[Prev in Thread] Current Thread [Next in Thread]