

How to make and display calculation Table using scilab.
Is there any wayto make a calculation tableas given below in Scilab-
I want to display this table as it is, but I have no idea what to do.

Thanks
Parvesh Taneja
B-Tech (M.E 2013-16), SoE
GD Goenka University, Gurgaon.
Scilab


It is possible to display the output in table format.
See the below example:
----------------------------------------------------------------------------------------------------------------------------
// Include an editable table into a figure:
// Building a table of data:
params = [" " "Country" "Population [Mh]" "Temp.[\xc2\xb0C]" ];
towns = ["Mexico" "Paris" "Tokyo" "Singapour"]';
country = ["Mexico" "France" "Japan" "Singapour"]';
pop = string([22.41 11.77 33.41 4.24]');
temp = string([26 19 22 17]');
table = [params; [ towns country pop temp ]]
f = gcf();
clf
as = f.axes_size; // [width height]
ut = uicontrol("style","table",..
"string",table,..
"position",[5 as(2)-100 300 87],.. // => @top left corner of figure
"tooltipstring","Data from majors towns")
// Modify by hand some values in the table. Then get them back from the ui:
matrix(ut.string,size(table))
---------------------------------------------------------------------------------------------------------------------------------
Type 'help table' on the Scilab console to read the documentation.
See the below example:
----------------------------------------------------------------------------------------------------------------------------
// Include an editable table into a figure:
// Building a table of data:
params = [" " "Country" "Population [Mh]" "Temp.[\xc2\xb0C]" ];
towns = ["Mexico" "Paris" "Tokyo" "Singapour"]';
country = ["Mexico" "France" "Japan" "Singapour"]';
pop = string([22.41 11.77 33.41 4.24]');
temp = string([26 19 22 17]');
table = [params; [ towns country pop temp ]]
f = gcf();
clf
as = f.axes_size; // [width height]
ut = uicontrol("style","table",..
"string",table,..
"position",[5 as(2)-100 300 87],.. // => @top left corner of figure
"tooltipstring","Data from majors towns")
// Modify by hand some values in the table. Then get them back from the ui:
matrix(ut.string,size(table))
---------------------------------------------------------------------------------------------------------------------------------
Type 'help table' on the Scilab console to read the documentation.
Login to add comment