[SOLVED] Write code on multiple lines.

[SOLVED] Write code on multiple lines.

Postby vasch the stampede » Fri Nov 18, 2016 5:35 pm

Is it possible to write code on multiple lines?

For exaple in MatLAB you can write:
Code: Select all
A = 1+2+3+4...
    +5+6+7+8+9;

instead of:
Code: Select all
A = 1+2+3+4+5+6+7+8+9;


What font should I use in Step Code in PWCT?
Last edited by vasch the stampede on Mon Dec 12, 2016 5:28 pm, edited 1 time in total.
vasch the stampede
 
Posts: 53
Joined: Sat Nov 08, 2014 7:57 pm

Re: Write code on multiple lines.

Postby Mahmoud Fayed » Mon Dec 12, 2016 2:26 am

Hello

You can use ; then complete the command in the next line

niceshot.png
niceshot.png (8.83 KiB) Viewed 364 times


Greetings,
Mahmoud
Mahmoud Fayed
Site Admin
 
Posts: 642
Joined: Tue Apr 23, 2013 4:50 am

Re: Write code on multiple lines.

Postby vasch the stampede » Mon Dec 12, 2016 5:26 pm

Thanks now I can write so:
Code: Select all
INI_mat:={;
{"C8/10",  {255,  0,  0}, 3, 25472.9335, 2    , 1.75 , 0.7,   3.5,    4.533333},;
{"C12/15", {192,192,192}, 3, 27266.5804, 2    , 1.75 , 0.7,   3.5,    6.8},;
{"C16/20", {192,192,192}, 3, 28820.6129, 2    , 1.75 , 0.7,   3.5,    9.066667},;
{"C20/25", {192,192,192}, 3, 30200.4932, 2    , 1.75 , 0.7,   3.5,   11.333333},;
{"C25/30", {192,192,192}, 3, 31447.1614, 2    , 1.75 , 0.7,   3.5,   14.166667},;
{"C28/35", {192,192,192}, 3, 32588.1078, 2    , 1.75 , 0.7,   3.5,   15.866667},;
{"C32/40", {192,192,192}, 3, 33642.7777, 2    , 1.75 , 0.7,   3.5,   18.133333},;
{"C35/45", {192,192,192}, 3, 34625.4852, 2    , 1.75 , 0.7,   3.5,   19.833333},;
{"C40/50", {192,192,192}, 3, 35547.1053, 2    , 1.75 , 0.7,   3.5,   22.666667},;
{"C45/55", {192,192,192}, 3, 36416.1139, 2    , 1.75 , 0.7,   3.5,   25.5},;
{"C50/60", {192,192,192}, 3, 37239.2591, 2    , 1.75 , 0.7,   3.5,   28.333333},;
{"C55/67", {192,192,192}, 3, 38324.8355, 2.199, 1.819, 0.625, 3.125, 31.166667},;
{"C60/75", {192,192,192}, 3, 39483.5851, 2.288, 1.888, 0.577, 2.884, 34},;
{"C70/85", {192,192,192}, 3, 40828.7927, 2.416, 2.025, 0.531, 2.656, 39.666667},;
{"C80/95", {192,192,192}, 3, 42077.8584, 2.516, 2.163, 0.521, 2.604, 45.333333},;
{"C90/105",{192,192,192}, 3, 43245.9377, 2.6  , 2.3  , 0.52,  2.6,   51},;
;
{"S235",   {0,128,255},  1, 210000, 1.066, 223.80952, 342.857},;
{"S275",   {0,128,255},  1, 210000, 1.247, 261.90476, 409.52381},;
{"S355",   {0,128,255},  1, 210000, 1.61 , 338.09524, 485.71429},;
{"S450",   {0,128,255},  1, 210000, 2.041, 428.57143, 523.80952}


Much neater.
vasch the stampede
 
Posts: 53
Joined: Sat Nov 08, 2014 7:57 pm

Re: [SOLVED] Write code on multiple lines.

Postby Mahmoud Fayed » Thu Jul 06, 2017 3:59 pm

Hello

Thanks now I can write so


You are welcome :D

Greetings,
Mahmoud
Mahmoud Fayed
Site Admin
 
Posts: 642
Joined: Tue Apr 23, 2013 4:50 am


Return to Questions

Who is online

Users browsing this forum: No registered users and 0 guests

cron