From 0fabeb52657f1b1f69d7eed4d13b862f611c8900 Mon Sep 17 00:00:00 2001 From: SilicoFlare <100959814+SilicoFlare@users.noreply.github.com> Date: Thu, 23 Mar 2023 14:35:25 +0530 Subject: [PATCH] edited codegen2 --- pes/scilab/lab02.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pes/scilab/lab02.html b/pes/scilab/lab02.html index ff4167c..e4dd92e 100644 --- a/pes/scilab/lab02.html +++ b/pes/scilab/lab02.html @@ -114,6 +114,10 @@ codeArea.innerText += "\nxstring(5.5, 450, ['Name: "+document.getElementById("stuName").value+"'])"; codeArea.innerText += "\nxstring(5.5, 400, ['SRN: "+document.getElementById("srn").value+"'])"; + codeArea.innerText += "\nxstring(0.8, 850, ['SCALE'])"+ + "\nxstring(0.5, 825, ['X-AXIS: 0.5 mL'])"+ + "\nxstring(0.6, 800, ['Y-AXIS: 50 V'])"; + codeArea.innerText += "\nscf"+ "\nN = length(x)"+ "\ndydx = diff(y(:)) ./ diff(x(:))"+ @@ -122,7 +126,10 @@ "\nplot(x1, dydx)"+ "\nxgrid()"+ "\nxlabel('$Volume\\ of\\ $K_{2}Cr_{2}O_{7}$\\ added\\ in\\ mL$')"+ - "\nylabel('$\\frac{\\Delta$E}{\\Delta$V}$')"; + "\nylabel('$\\frac{\\Delta$E}{\\Delta$V}$')"+ + "\nxstring(0.8, 550, ['SCALE'])"+ + "\nxstring(0.5, 525, ['X-AXIS: 0.5 mL'])"+ + "\nxstring(0.49, 500, ['Y-AXIS: 50 units'])"; }