Thursday, 4 June 2015
World's First Wireless MIDI Guitar Controller for Acoustic Guitar - ACPAD
My friend worked on it for 3 years, came up with several prototypes and now releasing it to market.
If you like it, visit acpad.com and subscribe to their newsletter.
Peace.
Saturday, 30 May 2015
Scilab plots : Legend
To include legend into a scilab plot there is no GUI based method as in MATLAB. At least, there are none that i know of.
Instead we use the following commands after the figure has been plotted.
g = gcf();
legend(g, ['Legend entry 1','Legend entry 2'],-5);
The last argument decides the location of the legend in the plot. -5 puts it outside the plot on the top left side. Vary this argument to find other positions.
Peace.
Instead we use the following commands after the figure has been plotted.
g = gcf();
legend(g, ['Legend entry 1','Legend entry 2'],-5);
The last argument decides the location of the legend in the plot. -5 puts it outside the plot on the top left side. Vary this argument to find other positions.
Peace.
Sunday, 24 May 2015
Scilab : Shortcuts in Scinotes
To navigate between tabs in scinotes, the short cut is
Ctrl + Tab + up/down arrow
This is for Scilab version 5.3.3
Peace.
Ctrl + Tab + up/down arrow
This is for Scilab version 5.3.3
Peace.
Monday, 11 May 2015
Scilab Plots : axes ranges
The plots themselves adjust the axes ranges depending on the values of the data being plotted.
However, if you need to set the ranges fixed, then use the following code after your plot command.
{code}
However, if you need to set the ranges fixed, then use the following code after your plot command.
{code}
g = gca(); g.data_bounds = [0,0;1,1];
{\code}
where,
g.data_bounds = [xLowerLimit, yLowerLimit: xUpperLimit,yUpperLimit];
Peace.
Scilab Plots : Background
The scilab plots by default come with a grey background which is just hateful. You need to go to the figure properties in order make it into white background. To make the background white as you plot, use the following code just after your plot command.
figure; plot(...);
f = gcf();
f.background = 8;
The number 8 corresponds to white. To know what other numbers correspond to, check the sliding bar in figure properties.
Peace.
figure; plot(...);
f = gcf();
f.background = 8;
The number 8 corresponds to white. To know what other numbers correspond to, check the sliding bar in figure properties.
Peace.
Tuesday, 28 April 2015
Ubuntu 12.04 : Applets on the panel
This is if you are using a gnome gui for ubuntu
If panel gets screwed then -
Alt + Right-Click on the panel and delete it
Then, Alt + Right-Click on the bottom panel and say "New Panel"
On the new panel do Alt + Right-Click, and click on "Add to Panel..."
In the window and add the following applets
1. Notification Area
2. Indicator Complete
3. Menu Bar (Custom menu bar)
this should resemble the default gnome toolbar.
Peace.
If panel gets screwed then -
Alt + Right-Click on the panel and delete it
Then, Alt + Right-Click on the bottom panel and say "New Panel"
On the new panel do Alt + Right-Click, and click on "Add to Panel..."
In the window and add the following applets
1. Notification Area
2. Indicator Complete
3. Menu Bar (Custom menu bar)
this should resemble the default gnome toolbar.
Peace.
Friday, 24 April 2015
Scilab : Include value of a variable in figure title
If your plot command is in a loop and you want to change the title everytime based on a changing variable then use the string command and the + operator.
For example,
In my code, the variable "init_level" was changing in each iteration and I wanted it to be in the title of the plots. So I modified the title() command for my figure in the following way.
title('5. For initial Level = '+string(init_level)+' the variation is :' ,'fontsize',3);
Note how the single quotes are used as the string command divides the title into two parts. and the + operator joins them all together.
Here, you can also see how I was able to vary the font size of the title as well.
Source of adding variable value in title - http://www.equalis.com/forums/Posts.aspx?topic=185466
Peace.
For example,
In my code, the variable "init_level" was changing in each iteration and I wanted it to be in the title of the plots. So I modified the title() command for my figure in the following way.
title('5. For initial Level = '+string(init_level)+' the variation is :' ,'fontsize',3);
Note how the single quotes are used as the string command divides the title into two parts. and the + operator joins them all together.
Here, you can also see how I was able to vary the font size of the title as well.
Source of adding variable value in title - http://www.equalis.com/forums/Posts.aspx?topic=185466
Peace.
Subscribe to:
Posts (Atom)