octave and matlab producing different results for following code

Jaroslav Hajek highegg at gmail.com
Sat Nov 1 00:50:11 CDT 2008


On Sat, Nov 1, 2008 at 4:03 AM, bharat pathak <bharat at arithos.com> wrote:
> k          = linspace(0, 2*pi, 100);
>
> [kk, kk] = meshgrid(k, k);
>
> y          = sin(kk) .* cos(kk);
>
> surf( y );
>
> %----------------------------------------------- running octave 3.0.1 on
> vista
> %------------------------------------------------ running matlab 7.1 on
> vista
>

Different in what sense?

-- 
RNDr. Jaroslav Hajek
computing expert
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz


More information about the Help-octave mailing list