Scilab/C4/User-Defined-Input-and-Output/Khasi

From Script | Spoken-Tutorial
Jump to: navigation, search
Time Narration
00:01 Ngi pdiangsngewbha ia phi sha ka Spoken Tutorial halor ka File handling da kaba pyndonkam Scilab.
00:06 Ha kane ka jinghikai, ngin pule ia ka :
00:08 Input Function
00:10 Formatting the Output
00:12 save function
00:14 load function .
00:16 Na ka bynta ka jingbatai nga pyndonkam da ka Ubuntu Linux 12.04 operating system ryngkat bad ka Scilab version 5.3.3 ba la dep install.
00:26 Phi dei ban don ia ka jingtip jong ka Scilab.
00:29 Lada phim don, na ka bynta ki jinghikai halor ka Scilab sngewbha leit sha ka spoken hyphen tutorial dot org.
00:37 Ka input() function la pyndonkam ban shim ia ka input na u user.
00:42 Ka ai ia u prompt ha ka text string na ka bynta ka user input.
00:47 Ka ap na ka bynta ka input na ka keyboard.
00:51 Lada la pyndap tang ia u carriage return ha ka prompt, input() function ka pynphai tang ia ka matrix bym don eiei.
00:59 Ka input function lah ban thoh ha ki artylli ki rukom:
01:03 Nyngkong, x= input into brackets "message to display"
01:09 Ka ba ar, x= input into brackets ("message to display", "strings").
01:17 Ha ka nuksa kaba ar, u argument ba ar udei u “string”.
01:22 Te ka output kadei u character string kaba dei ka expression kaba la pyndap da kaba pyndonkam ia ka keyboard.
01:29 Phai sha ka Scilab console window bad type,
01:33 x is equal to input open bracket inside double quotes Enter your age close the double quotes close the bracket bad nion Enter.
01:49 Type 25 bad nion Enter.
01:53 Mynta type -->y is equal to input into bracket into double quotes Enter your age khang noh ia u double quotes comma sa shisien hapoh ki double quotes thoh string khang noh ia u bracket bad nion Enter.
02:14 Type 25 bad nion Enter.
02:18 Ngi iohi ba ha baroh ar rukom ka input kaba ngi pyndap lyngba ka keyboard, udei u number 25.
02:25 Mynta , to ngin check ia ka type jong u variable kaba u x bad u y kidei.
02:30 To ngin clear ia ka console da kaba pyndonkam ia ka clc command.
02:34 Ngi leh ia kane ban pynshisha ia ka jingpyndonkam bad jinglong kongsan jong u argument “string”, ba la ai ha ka nuksa ba ar.
02:42 Ban check ia ka type jong u variable, to ngin type
02:45 -->typeof into brackets x bad nion Enter.
02:51 Ha kajuh ka rukom, typeof(y) bad nion Enter.
02:57 Phi lah ban iohi hi dalade ba ka jubab ba nyngkong ba la buh ha u x kadei jong ka type constant bad
03:04 Ka jubab ba ar ba buh ha u y, ryngkat bad u argument “string” ba la kynthup ha ka command , kadei jong ka type string.
03:12 To ngin peit mynta kumno ban format ia ka output kaba la pyni ha ka console.
03:17 Kane lah ban leh da kaba pyndonkam ia ka mprintf() function.
03:22 mprintf() function ka pynkylla, format bad thoh ia ka data ha ka Scilab console.
03:28 Kadei ka interface na ka bynta ka C-coded version jong ka printf() function.
03:34 To ngin peit ia kawei ka nuksa na ka bynta kane. Phai sha ka console.
03:38 Type-->mprintf into bracket into quotes type At iteration percent i comma Result is colon slash n alpha is equal to percent f comma 33 comma 0.535 khang noh ia u bracket.
04:12 Hangne 33 yn sa pyni ha ka jaka jong percent i (%i) bad point 535 (0.535) yn sa pyni ha ka jaka jong percent f (%f) kum ka flow. Nion Enter.
04:26 Kane kan ai ia ka output kum At iteration 33, Result is alpha is equal to 0.535000.
04:39 Clear ia ka console. Mynta to ngin peit sa kawei ka nuksa.
04:44 mprintf open bracket into quotes Value of x is equal to percentage d is taken as a CONSTANT comma while value of y is equal to percent s is taken as a STRING khang noh ia ki quotes comma x comma y khang noh ia u bracket.
05:19 Ha ka nuksa ba hajrong percentage d (%d) la pyndonkam ban pynrung ia u constant data ba la buh ha u variable x bad
05:28 percentage s (%s) la pyndonkam ban pynrung ia ka string data ba la buh ha u variable y. Nion Enter , phi iohi ia ka output.
05:38 Mynta, to ngin ia kren ia ka jingdonkam jong ka save bad load commands.
05:43 Ban quit ia ka Scilab shiteng lyngba ka calculation bad ban
05:47 Bteng ha ki kyrdan ba kham shadien , type save thissession.
05:52 Kane kan save ia ki current values jong baroh ki variables sha ka file ba khot thissession.
05:58 Kane ka file ym lah ban pynkylla.
06:01 Kadei ha ka binary format.
06:04 Ynda hadien phi sdang ia ka Scilab, type load thissession
06:08 Bad ka jingkhein lah ban bteng na kaba phi lah ieh.
06:13 Ka jingthmu ban save bad load functions kidei
06:16 Ka save() command ka save ia baroh ki Scilab current variables ha ka binary file.
06:22 Lada u variable udei u graphic handle, ka save function kan save ia baroh ki graphics_entities definition kiba iadei.
06:31 Ka file lah ban ai da ka path lane da u descriptor jong ka ba la ai hashwa.
06:37 save(filename) ka save ia baroh ki current variables ha ka file ba la define da ka filename.
06:45 save into bracket fd ka save ia baroh ki current variables ha ka file ba la define da u descriptor fd.
06:53 save(filename,x,y) lane save(fd,x,y) ka save tang ia ki variables ba kyrteng x bad y.
07:02 To ngin peit ia kawei ka nuksa ban batai ia ka jingpyndonkam jong ka save bad load commands
07:07 Phai biang sha ka console. To ngin define artylli ki matrices, shu ong noh a bad b.
07:14 -->a = eye jong (2,2) bad nion Enter.
07:22 Type b=ones(a) bad nion Enter.
07:28 Clear ia ka console da kaba pyndonkam ia ka clc command. Mynta type
07:34 save space matrix dash a dash b
07:42 Lane lah ruh ban thoh kum:
07:46 save into brackets into quotes matrix dash a dash b dot dat khang noh ia ki quotes comma a comma b khang noh ia u bracket bad nion Enter.
08:03 Kane ka save ia baroh ki values jong ki variables ha ka binary file 'matrix dash a dash b dot dat' (matrix-a-b.dat) ha ka directory ba treikam mynta.
08:12 Phi lah ban browse ia ka directory ba treikam mynta ban check ia ka jingdon jong kane ka binary file.
08:17 Phi lah ban iohi ia ka hangne. Ngan khang noh ia ka file browser.
08:22 Mynta to ngin load biang ia ka file sha ki variables.
08:26 Shwa kata, to ngin clear ia ki variables a and b .
08:29 Type clear a space b, nion Enter.
08:34 To ngin check bha lada kine ki variables ki lah clear shisha.
08:39 ->a , b
08:41 Mynta to ngin load biang ia ki values na ki binary files ha ki variables a bad b da kaba pyndonkam load command.
08:49 Type: load into bracket into quote matrix dash a dash b dot dat khang noh ia ki quotes comma into quotes a comma into quotes b khang noh ia u bracket bad nion Enter.
09:08 To ngin check ia ki values ha ki variables a bad b. Clear ia ka console.
09:14 Type -->a and-->b
09:18 Phi iohi ia ki values la dep load biang sha ki variables.
09:23 Ha kane ka jinghikai ngi la pule - Input function da kaba pyndonkam ia ka input command
09:28 Format ia ka output da kaba pyndonkam ia ka mprintf command
09:31 save function
09:33 load function
09:35 Peit ia ka video ba don ha la link ba la pyni harum.
09:38 Ka batai kyllum ia ka Spoken Tutorial project.
09:41 Lada phim don ia ka bandwidth kaba biang, phi lah ban shu download bad peit ia ka.
09:46 Ka kynhun jong ka Spoken Tutorial Project:
09:48 Ka pynlong ia ki workshops da kaba pyndonkam da ki spoken tutorials.
09:51 Ka ai certificates sha kito kiba pass ha ka online test.
09:54 Na ka bynta kham bun ki jingtip, sngewbha thoh sha ka contact@spoken-tutorial.org.
10:01 Spoken Tutorial Project kadei shibynta jong ka Talk to a Teacher project.
10:05 La kyrshan ia ka da ka National Mission on Eduction lyngba ka ICT, MHRD,Sorkar India.
10:12 Kham bun ki jingtip halor kane ka mission kidon ha ka http://spoken-tutorial.org/NMEICT-Intro.
10:23 Nga i Meboreen na Shillong, nga pynkut ia kane.
10:26 Khublei shibun ia ka jingsnohkti lang jong phi.

Contributors and Content Editors

Meboreen Mary