Professional Documents
Culture Documents
Experiment 1 Foc A and B
Experiment 1 Foc A and B
EXPERIMENT:_1(a)
Software:Scilab.
What is Scilab?
Scilab is free and open source software for numerical computation providing a powerful
computing environment for engineering and scientific applications. Scilab includes
hundreds of mathematical functions. It has a high-level programming language allowing
access to advanced data structures, 2D and 3D graphical functions. its ability to
interconnect with third-party technologies andapplications, Scilab can also act as a unique
platform to bring together codes written in different programming languages in a single,
unified language, thus facilitating their distribution, their back-up and use. A large number
of functionalities is included in Scilab.
• Application Development
Increase Scilab native functionalities and manage data exchanges with external tools.
• X-cos - Dynamic systems modeling
Modeling mechanical systems, hydraulic circuits, control systems.
Matlab Scilab
From file menu open and create new source From file menu open and create new source
file. Source file has extension “.m” file. source file has extension “.sci”
% when function returns a value function // when function does not returns a
[r]=test(a,b) value function r=test(a,b) endfunction
end
// when function does not returns a
%when function does not returns a value functiontest(a,b) endfunction
value function[]=test(a,b) end
%comment //comment
Write the function name in command Execute menu and load into scilab and then
window to run write the function name in command
window to run.
mod(x,y) Pmodulo(x,y)
fprintf(1,‘format string’,var1,var2,…) Printf(‘format string’,var1,var2,…)
Conclusion :-
EXPERIMENT: 1(B)
AIM : Basic of Scilab.
• Mathematical Operator :
Fig. 1(b)_1
Fig. 1(b)_2
Fig. 1(b)_3
Fig. 1(b)_4
Fig. 1(b)_5
Fig. 1(b)_6
• Complex Number :
Fig. 1(b)_7
• Data types :
Fig. 1(b)_8
Fig. 1(b)_9
Fig. 1(b)_10
Fig. 1(b)_11
• Defining a Function :
Fig. 1(b)_12
• Plotting :
Fig. 1(b)_13
Conclusion :-