Thursday, September 18, 2014

Matlab marker size color


plot(xini(1),xini(2),'ko','MarkerSize',10, 'MarkerFaceColor',[0,0,0])
plot(tgt(1),tgt(2),'rd','MarkerSize',10, 'MarkerFaceColor',[1,0,0])


Tuesday, September 16, 2014

Skip items in Matlab legend


You can specify a vector of plot handles to use in the legend. For example:

h1 = plot(rand(1,10));      % Blue line
hold on;
h2 = plot(rand(1,10),'r');  % Red line
h3 = plot(rand(1,10),'g');  % Green line
legend([h1 h3],{'hello','world'});  % Only the blue and green lines appear
                                    %   in the legend

Wednesday, July 30, 2014

Ubuntu 12.04 – The System is running in low-graphics mode

How do we fix it?
There is simple fix for this issue. Once you get the error on your screen press ALT+CTRL+F1, once in new screen type/run these commands
sudo apt-get update
sudo apt-get purge flglrx
sudo reboot
The message should be gone, if not there is good chnage that you have also trouble with gdm and you can fix it in these steps:
Again press ALT+CTRL+F1 and run these commands
sudo apt-get install gdm
sudo service gdm restart