Hello, Im a very beginner in scilab.
I would like to ask how to plot2d like this diagram below.
I can apply the formula when the temperature raise, but in the melting peroid,
how do I plot this peroid.
Since this the plot consist of multiple line segments, we cannot plot it with a single plot2d function. Here is how I did it
x1=0:0.5:1; //taking arbitrary x axis data as the x axis in plot above is blank
y1=-40:20:0; // -40 to 0
plot2d(x2,y2) //the horizontal line at 0
y3 = 0:50:100;
plot2d(x3,y3); //0 to 100
plot2d(x4,y4) //horizontal line at 100
plot2d(x1,y1,nax=[-1,0,-1,8]) //100 to 140,the -1 in nax removes the ticks in x axis as it is in the plot above
xtitle("Temperature vs Heat absorbed", "Heat Absorbed","Temperature") //title and x & y labels
If you search in our Textbook Companion page, you will see many different ways of drawing a 2D plot. An easy way to draw the plot you have asked is given in the example available at http://cloud.scilab.in/index.php?eid=5360#. You can access such examples for many different commands from this TBC Code Search page: http://scilab.in/tbc_solr_search