Tuesday, August 26, 2008

How to make Matlab help feature open external browser

How to make Matlab help feature open external browser?
This is interesting problem and depends upon the system.

And, this is quite easy too!

simply type:
help docopt

you can see alot of details there.

In my case, I use UBUNTU, so as directed by the help file, I modified the "line 52".

52 doccmd = 'mozilla';
That solves the problem, however, I did run 'mozilla' in terminal to make sure that it works.

:)

Easy!

Friday, August 22, 2008

How to delete ASV files: autosave files in MATLAB

I used to have a lot of asv files by the end of the day. While they can efficiently save your work as a back up, having them all over is a pain.
So, I had to manually delete them. One by one. That is another pain.
I came across the fact that they can automatically be deleted.
See figure:
Go to File menu>Prefererences>select autosave and select "Automatically delete auto save files.
Apply and OK.

nice! no more junks!

Getting Started with MATLAB: A Quick Introduction for Scientists and EngineersMATLAB for Engineers (2nd Edition)Matlab: A Practical Introduction to Programming and Problem Solving, Second Edition 

Friday, August 15, 2008

Kill Firefox in Ubuntu

I have been using Ubuntu in Dell Inspiron 6400. Actually, I had installed last year. But unable to use it nicely, because of two reasons. I had no wireless internet available in Ubuntu: in-compatible hardwares and the other was that I had no success in installing Matlab in it.
Now after installing the Matlab successfully and having updated it to Ubuntu 8.x, I can see its inherent beauty.
Actually, this is my second day in Linux environment without the glimpse of the Vista.

I am glad with this...
So, I thought, I should post some of my experiences.


My Ubuntu Experiences: Part x


Today: I got into trouble with the message:
Firefox is already running, but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

Hmm?

In the case of Vista,( or MS OS) I could go to task manager and kill it. So how can I kill it?

Googled it and found the solution:
http://brainstorm.ubuntu.com/idea/8958/
Stated:
open a terminal and type "killall firefox" and then proceed with "killall children"
I did it, wow! It works.

Friday, August 8, 2008

Run Matlab with full path...

After bit of wrestling, I could finally figure out how to run matlab.

Phew!!!
My problem was that I had skipped the installation of the symbolic link
so, need to run:

/home/bloggerDai/matlab/bin/matlab

:(

long command.

I need to learn how to install the symbolic link, as I can see it is straight forward with su privileges.

Going back to ubuntu to wrestle for that ...

Sunday, June 29, 2008

Watching the whole emipire falling down

You can start with nice tools and build up an empire.
What if after the empire was being built and at final moment you realized that the whole land did not belong to you?

For the permanent peace, you must watch the empire falling down.

Coding Horrors are the description as told by the eye witness of such falling empire.
It is amazing to see that the whole scenario become a nice memorable event.

If you did not learn from the failure, you are not an intelligent animal!

Friday, June 27, 2008

Show me the space!

x = (0.01:.01:1);
y = (0.01:.01:1);


size = length(x);

for i = 1:size
for j = 1:size


...
:)
C:\academy\me2008\TRY11

Model=[Model1, Model2, Model3, Model4, Model5, Model6, Model7, Model8];
QQ=0;
for k = 1:N
QQ=QQ+(Di(k)-Model(k)).^2;
end
z(i,j) = -(QQ)./(2*sigma.^2);
end
end
% logL=(-N/2)*log(QQ);




[X,Y] = meshgrid(x,y);

Z = griddata(x,y,z,X,Y,'cubic');


meshc(X,Y,Z) %
colormap hsv

surfc(X,Y,Z)