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