octave and matlab producing different results for following code
bharat pathak
bharat at arithos.com
Tue Nov 4 01:17:07 CST 2008
hello jaroslav,
I think it was more of human error from my side.
now I have put the same code in .m file and ran
on both platforms. yielding to same result.
my apologies.
rgds
bharat
--------------------------------------------------
From: "Jaroslav Hajek" <highegg at gmail.com>
Sent: Saturday, November 01, 2008 11:20 AM
To: "bharat pathak" <bharat at arithos.com>
Cc: <help-octave at octave.org>
Subject: Re: octave and matlab producing different results for following
code
> 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