help-octave
[Top][All Lists]
Advanced

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

Re: 2D plot with colormap


From: guido.bonalumi
Subject: Re: 2D plot with colormap
Date: Wed, 15 Oct 2014 04:06:05 -0700 (PDT)

I was trying this small code that was written for me by a friend of mine:

clc
close all
clear all

cd output
a=csvread('U_2014_10_05.csv');
cd ..

x=a(:,1);
y=a(:,2);
z=a(:,3);

scatter3(x(:),y(:),z(:),[],z(:));
colormap(jet(16));
shading interp
colorbar;

It was written it for Matlab, and running it with Octave I receive this
error:

'invalid error for color property "markeredgecolor"'

The error is referred to this line:

scatter3(x(:),y(:),z(:),[],z(:));

but I checked and the syntax seems right to me. Do you know some possible
cause to this error?



--
View this message in context: 
http://octave.1599824.n4.nabble.com/2D-plot-with-colormap-tp4666931p4666966.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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