[Show all top banners]

akawi
Replies to this thread:

More by akawi
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 Scilab programing topics
[VIEWED 4050 TIMES]
SAVE! for ease of future access.
Posted on 06-01-07 4:47 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

In my experience, the best way to learn programming is to write some code, run it and see what happens. If you are successful, the next step is to change some parameters and re-run. Of course you need to know the basic rules.
Scilab is one of the programs I have been using for my work for last one and half years. I have found it quite useful and easy to learn. It is free-clone of Matlab. It have a lot of useful tools. Let us see what the following program does. If you find interesting I will explain about the codes in detail in my next postings.
[note: before using the program you will need to download scilab from www.scilab.org]

mode(-1)
for k=1:1
if k<10 then
kk='0'+string(k)
else
kk=string(k)
end

clf
// rect=[-k,-k,k,k];
// tics=[1,2,1,2];
// plotframe(rect,tics)
drawlater
f=gcf()
f.figure_size=[500,500]
for theta=10:10:180
j=0
t=theta*%pi/180
for i=-3:0.1:3
j=j+1
y(j)=i
x(j)=(1-y(j)^2/9)
x(j)=x(j)^0.5*5
end
for i=3:-0.1:-3
j=j+1
y(j)=i
x(j)=(1-y(j)^2/9)
x(j)=x(j)^0.5*5
x(j)=-x(j)
end
xnew=[x,y]*[cos(t),sin(t);sin(t),-cos(t)]
x1=xnew(:,2)
y1=xnew(:,1)
plot(x1,y1,'-r')
end
a=gca()
a.isoview="on"
a.axes_visible = ["off","off","off"]
drawnow
// xs2gif(0,'c:/TEMP/'+kk+'.gif')
end

 
Posted on 06-01-07 8:31 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Yes you are right Scilab is nice little program to learn numerical programming. One can easily switch to Matlab after learning this program.
If any body is interested in similar program for symbolic and also for some numerical programming just like in Maple and in Mathematica check out Maxima. It is also a free program. Click below for more

- http://maxima.sourceforge.net/
 
Posted on 06-01-07 2:58 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

how fast is it's compiler/interpreter? any advantage over matlab?
 
Posted on 06-02-07 2:28 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

My intention was to attract novices to programming. For those who are already using high-level-programming like MATLAB, I have nothing much to say.
I have used both SCILAB and Matlab for simple engineering problems. I have not found much difference in the speed. The biggest difference between Scilab and Matlab is the price. In my case Scilab has been sufficient to solve my problem.
I am putting one for gif file.

 
Posted on 06-02-07 10:25 AM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Thank u akawi for information.It's really useful for me.
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 90 days
Recommended Popular Threads Controvertial Threads
What are your first memories of when Nepal Television Began?
निगुरो थाहा छ ??
TPS Re-registration case still pending ..
Basnet or Basnyat ??
Sajha has turned into MAGATs nest
NRN card pros and cons?
Will MAGA really start shooting people?
मन भित्र को पत्रै पत्र!
Top 10 Anti-vaxxers Who Got Owned by COVID
TPS Work Permit/How long your took?
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
Breathe in. Breathe out.
3 most corrupt politicians in the world
Guess how many vaccines a one year old baby is given
अमेरिकामा बस्ने प्राय जस्तो नेपालीहरु सबै मध्यम बर्गीय अथवा माथि (higher than middle class)
emergency donation needed
चितवनको होस्टलमा १३ वर्षीया शालिन पोखरेल झुण्डिएको अवस्था - बलात्कार पछि हत्याको शंका - होस्टेलहरु असुरक्षित
शीर्षक जे पनि हुन सक्छ।
Disinformation for profit - scammers cash in on conspiracy theories
someone please tell me TPS is here to stay :(
Nas and The Bokas: Coming to a Night Club near you
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters