## Tuesday, December 11, 2007

### to plot the log Likelihood or logWt

v=zeros(1,MAX);
for i=1:MAX

v(i)=Samples(i).logWt;
newv(i) = exp(v(i));

% new(i)=v(i)/max(newv);

% v(i)=Samples(i).logL;

end

plot((newv./max(newv)))

## Wednesday, November 28, 2007

### aUTO Surf!

{html>

{title>Hello World{/title>

{script language="JavaScript">
{!--
var time = null
function move() {
window.location = 'URL
}
//-->
{/script>

{script type="text/javascript">
var q=Math.random()
var qq=20000*q
{/script>

{div id="DivExample">

{script type="text/javascript">

var r=Math.floor(Math.random()*300+1)
var rr=30000*r
{/script>
{div id="ComboExample">{iframe src="http://www.url" frameborder="no" height="100%" scrolling="no" width="100%">{/iframe>{/div>

{/div>
{/body>

{/html>

*********
REPLACE { WITH < N ENJOY!

## Wednesday, November 14, 2007

### Nag IE :

If you're a web master type like me there is a very easy way to nag Internet Explorer users into changing their web browsers - or whatever. It goes a little something like this ....

(!--[if IE]>
(div style="width:100%; border-bottom: 2px solid red; background:gray; padding:5px;">
(strong>Warning(/strong>: You are using Internet Explorer.
(/div>
(br />
(![endif]-->

**************
replace ( with <

## Sunday, November 11, 2007

### Pleae make GUI outta it!

% close all
% q=0:.1:100*pi;
% major =50;
% minor=30;
% ratio=10;
% f=pi/40
% x = major * sin (q) + minor * sin (ratio*q-f)
% y = major * cos (q) + minor * cos (ratio*q+f)
% plot(x,y)
%
% x = major * sin (q) + minor * sin (ratio*q-f)
% y = major * cos (q) + minor * cos (ratio*q+f)
%
% I think these things pretty much count as trochoids, being the trails left by a point on a wheel as it rolls around another wheel.
% Conventionally though trochoids are divided into two categories: Epitrochoids and hypotrochoids.
% Epitrochoids are the trail from a wheel rolling around the outside of a fixed circle.
% Hypotrochoids are those formed from a wheel rolling around the inside of a fixed circle.
% These curves belong to a more general class, with the wheel being rolled around also turning.

nframes = 50;
n=300;
s=.02;
close all
q=0:.1:100*pi;
major =50;
minor=30;
ratio=10;
f=pi/.4;
x = major * sin (q) + minor * sin (ratio*q-f);
y = major * cos (q) + minor * cos (ratio*q+f);

% x = rand(n,1)-0.5;
% y = rand(n,1)-0.5;
if x<0
h = plot(x,y,'.r');
else
h=plot(x,y,'.b');
end

set(h,'MarkerSize',8);
axis ([-80 80 -80 80])
axis square
grid off

for k = 1:nframes

x = major * sin (q) + minor * sin (ratio*q-f)+ s*rand.*100;
y = major * cos (q) + minor * cos (ratio*q+f)+ s*rand.*100;

%
% x = x + s*randn(n,1);
% y = y + s*randn(n,1);
set(h,'XData',x,'YData',y)
M(k) = getframe;
end

movie(M,2)

## Thursday, November 8, 2007

### Euro/USD exchange rate.

(iframe border="0" frameborder="0" title="FX Trek Charts" marginheight="1" marginwidth="1" height="455" src="http://www.global-view.com/fxtrekcharts.html" width="655" name="Charts">
Your browser does not support inline frames or is currently configured not to display inline frames.
(/iframe>

This shows the java of Euro/USD exchange rate.

### correlation

Hi,

Try and play on these commands!

Dz

x=randn(1,1000);
>> y=filter(1,[1 -0.5],x);
>> plot(y)
>> plot(xcorr(x,x))
>> figure
>> plot(y,y)
>> figure
>> plot(xcorr(y,y))
>> y=filter(1,[1 -0.99],x);
>> plot(xcorr(x,x))
>> figure
>> plot(xcorr(y,y))
>> plot(xcorr(x,y))

## Saturday, November 3, 2007

### Picasa Slide show

Put this code and get the picasa web album in your blog/website.

************
Replace ( with <

## Tuesday, October 30, 2007

### Let's try XX Square

Let's try one more
97²

97-3=

94

*
94(00)
***
*
3 x 3 =9

*
9409

It's pretty easy

Go and practise these, you'll impress your friends