countme=1;
figure;
for i = 1:n
x = Obj(i).x;
y = Obj(i).y;
plot(x,y,'o');
hold on
axis([-2 2 0 2]);
end
hold off
% ***************************************
% print(gcf, '-djpeg',['nnn',num2str(nest)])% this saves the pictures in jpeg format, with numbers in filename.
% **************************************
h=get(0,'CurrentFigure');
F(countme)=getframe(h);
F(countme)=getframe(gcf);
% **********************************
% save(['C:\academy\knuth\lighthouse\myWS', num2str(countme)]) % saves the work space without completion of loop
% ***********************************
countme=countme+1;
end
movie(F); % This is not working to create movie in my case.
% movie2avi(F,'movie');
Tuesday, April 1, 2008
Wednesday, March 12, 2008
Matlab Picture
print(gcf, '-djpeg',['nnn',num2str(nest)])% this saves the pictures in jpeg format, with numbers in filename.
(in my case nest runs in loop in the lighthouse problem, so will get the names of the loop)
(in my case nest runs in loop in the lighthouse problem, so will get the names of the loop)
Friday, February 15, 2008
How to hide the nav bar at the top in blogspot
Paste the following code just after the Header starts (after the head tag)
Date: 15 Feb 2008
Updated by: dai
----------------------------------------------- */
.navbar {
display:none;
}
* {
margin: 0;
padding: 0;
}
ब्लॉगर टेम्पलेट स्टाइल
नेम: रौंदेर्स ३
डिजाइनर: डगलस बोव्मन
उरल: व्व्व.स्तोप्देसिग्न.कॉम
Date: 27 Feb 2004
Updated by: Blogger Team
----------------------------------------------- */
.navbar {
display:none;
}
* {
margin: 0;
padding: 0;
}
-->
Date: 15 Feb 2008
Updated by: dai
----------------------------------------------- */
.navbar {
display:none;
}
* {
margin: 0;
padding: 0;
}
ब्लॉगर टेम्पलेट स्टाइल
नेम: रौंदेर्स ३
डिजाइनर: डगलस बोव्मन
उरल: व्व्व.स्तोप्देसिग्न.कॉम
Date: 27 Feb 2004
Updated by: Blogger Team
----------------------------------------------- */
.navbar {
display:none;
}
* {
margin: 0;
padding: 0;
}
-->
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)))
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>
{head>
{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>
{/head>
{body onload="timer=setTimeout('move()',qq)">
{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!
{head>
{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>
{/head>
{body onload="timer=setTimeout('move()',qq)">
{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 ....
Add this code right after "{body>" to re-create the IE nag on this page.
(!--[if IE]>
(div style="width:100%; border-bottom: 2px solid red; background:gray; padding:5px;">
(strong>Warning(/strong>: You are using Internet Explorer.
Please upgrade to (strong>(a style="color:white;" href="http://getfirefox.com/">Firefox(/a>(/strong>.
(/div>
(br />
(![endif]-->
**************
replace ( with <
Add this code right after "{body>" to re-create the IE nag on this page.
(!--[if IE]>
(div style="width:100%; border-bottom: 2px solid red; background:gray; padding:5px;">
(strong>Warning(/strong>: You are using Internet Explorer.
Please upgrade to (strong>(a style="color:white;" href="http://getfirefox.com/">Firefox(/a>(/strong>.
(/div>
(br />
(![endif]-->
**************
replace ( with <
Subscribe to:
Posts (Atom)