help-octave
[Top][All Lists]
Advanced

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

What is wrong with this m file?


From: Dr. Krishna Mohan, T. R
Subject: What is wrong with this m file?
Date: Wed, 9 May 2012 16:53:09 +0530

I have a simple m file which plots my data in different shades. When I run this 
on my Mac Desktop (Lion), I get blank plot windows opening up but no plot 
appearing. I also get gnu plot general help read me displayed. What is going 
on? The file in question is:

close all;
clear all;
figure;
%
k2 = 176259;
brghtpar=0.5;
%
s=load('-ascii','binke.dat');
a=s(1:k2,1:100);
cmap=contrast(a);
newmap=brighten(cmap,brghtpar);
imagesc(a)
colormap(newmap)
%
Dr. Krishna Mohan, T. R
CSIR Centre for Mathematical Modelling and Computer Simulation (C-MMACS)
NAL WTC Road
Bangalore 560 037, India
Tel: +91-80-2505 1927
Fax: +91-80-2522 0392




reply via email to

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