Vincent,
A question to be sure we understood the underlying problem. How did you get this error message? - Using SciNotes (F5 shorcut for example)? - Using exec function? - Using copy/paste? When testing the code I usually select a portion of code from SciNotes and use the contextual menu "Evaluate selection with echo". However, I notice now that with F5 I don't experience the same problem...! But I also notice that in other cases of commands longer than 4096 the problem doesn't show. When I use .. to continue on the next line, there is no problem. When the same data is included in a single very long line the problem arises. I'm including at the end two examples. In the first one the data are ordered with frequent ..'s, in the second one I removed all the continuation marks with the consequence that it will not be accepted. The expected behavior would be that there were no difference between the different ways of executing a command. As final note, among the answers I received when I posted my quest, one included the proposal of a function which allows to read massive data as in my usage case from a block comment at the end of the file. This would be interesting also in order to alleviate the code. Regards, Federico Miyara From: users <users-boun...@lists.scilab.org><mailto:users-boun...@lists.scilab.org> On Behalf Of Federico Miyara Sent: Thursday, November 17, 2022 10:21 PM To: users@lists.scilab.org<mailto:users@lists.scilab.org> Subject: Re: [Scilab-users] command longer than 4096 EXTERNAL EMAIL : The sender of this email is external to 3DS. Be wary of the content and do not open unexpected attachments or links. If you consider this email as spam, you can click here<https://spam-report.3ds.com/?link=%3ca%20href=%22https://www.mailcontrol.com/sr/QZYlT7N8RGDGX2PQPOmvUqKJsUvVq31ZRDFtiiGhHpJZ_bGk0noliIY1G-osMefMsui7cG11ww75pl0FDW8fzw==%22%3ehere%3c/a%3e> (no login or additional action will be requested). Christopher, Yes, you understand correctly my case. There is a reason that justifies my request: I often use my scripts as examples within a didactic context. They are exhaustively commented, for instance. I consider it preferable to have all the needed data in the same script since I cannot be sure that potential future users who find my script will also find the associated file with the data (sometimes one downloads a file for future use without checking whether we are downloading all the associated files). Then they should also change the script according to the particular directory tree where they choose to place the data, which is an unnecessary distraction from the very point of the example. I agree that it wouldn't be convenient nor practical to work in this way with very large data sets, but some 1000 data is not unusual. Regards, Federico Miyara On 17/11/2022 05:16, Dang Ngoc Chan, Christophe wrote: Hello Federico, De : users <users-boun...@lists.scilab.org><mailto:users-boun...@lists.scilab.org> De la part de Federico Miyara Envoyé : jeudi 17 novembre 2022 03:36 I have to create a vector from a plain text containing about 700 decimal numbers, each one with several digits. [...] Is there a simple way to do this other than [...] saving the data as a text file To be sure I understand well : in your Scilab script, you have something like foo = [3.14, 1.414 ; 1.732 ... with the 700 numbers written inside your script? Of course your request is legitimate but IMHO, this is really not the best practice. I warmly recommend to have the 700 numbers in a separate file. Regards -- Christophe Dang Ngoc Chan Mechanical calculation engineer a = [0.2146008 0.3126420 0.3616361 0.2922267 0.5664249 0.4826472 0.3321719 0.5935095 .. 0.5015342 0.4368588 0.2693125 0.6325745 0.4051954 0.9184708 0.0437334 0.4818509 .. 0.2639556 0.4148104 0.2806498 0.1280058 0.7783129 0.2119030 0.1121355 0.6856896 .. 0.1531217 0.6970851 0.8415518 0.4062025 0.4094825 0.8784126 0.1138360 0.1998338 .. 0.5618661 0.5896177 0.6853980 0.8906225 0.5042213 0.3493615 0.3873779 0.9222899 .. 0.9488184 0.3435337 0.3760119 0.7340941 0.2615761 0.4993494 0.2638578 0.5253563 .. 0.5376230 0.1199926 0.2256303 0.6274093 0.7608433 0.0485566 0.6723950 0.2017173 .. 0.3911574 0.8300317 0.5878720 0.4829179 0.2232865 0.8400886 0.1205996 0.2855364 .. 0.8607515 0.8494102 0.5257061 0.9931210 0.6488563 0.9923191 0.0500420 0.7485507 .. 0.4104059 0.6084526 0.8544211 0.0642647 0.8279083 0.9262344 0.5667211 0.5711639 .. 0.8160110 0.0568928 0.5595937 0.1249340 0.7279222 0.2677766 0.5465335 0.9885408 .. 0.7395657 0.0037173 0.5900573 0.3096467 0.2552206 0.6251879 0.1157417 0.6117004 .. 0.6783956 0.3320095 0.0258710 0.5174468 0.3916873 0.2413538 0.5064435 0.4236102 .. 0.2893728 0.0887932 0.6212882 0.3454984 0.7064868 0.5211472 0.2870401 0.6502795 .. 0.0881335 0.4498763 0.7227253 0.8976796 0.2427822 0.4337721 0.9677053 0.5068534 .. 0.5232976 0.5596948 0.5617307 0.4681760 0.7794547 0.7901072 0.9808542 0.8187066 .. 0.4256872 0.2461561 0.9229532 0.1000746 0.4678218 0.3950498 0.0366117 0.5175369 .. 0.8325452 0.6104832 0.1871112 0.0189575 0.8433565 0.0748595 0.8532815 0.0124590 .. 0.1867539 0.4920584 0.7489608 0.9414957 0.2124056 0.5795020 0.2628148 0.4360987 .. 0.9110545 0.8082667 0.8102653 0.2590428 0.4139087 0.3599928 0.6912788 0.7656859 .. 0.3572650 0.7693400 0.5477634 0.0962289 0.9561172 0.2207409 0.0143259 0.8191490 0.1304993 .. 0.9682004 0.6561381 0.2445539 0.5283124 0.8468926 0.7876622 0.1262083 0.7883861 .. 0.3453042 0.2659857 0.9709819 0.8875248 0.2066753 0.8525161 0.6744698 0.9152874 .. 0.0284860 0.2367841 0.7015344 0.1202527 0.8287412 0.3161073 0.5305191 0.5715175 .. 0.0478015 0.8248620 0.5798843 0.2791808 0.9545111 0.9071155 0.3360149 0.1175613 .. 0.9253724 0.7263671 0.9009498 0.3948993 0.5655180 0.7061490 0.6787831 0.4132936 .. 0.1402291 0.4952356 0.4194877 0.8626222 0.2857510 0.2512136 0.3389102 0.3921976 .. 0.4681552 0.3361603 0.5336877 0.2039064 0.1589990 0.0181815 0.4098371 0.0105835 .. 0.1965310 0.2725595 0.3437655 0.2033702 0.3011945 0.2762596 0.2944531 0.5718074 .. 0.2141770 0.6895462 0.5855573 0.4204123 0.4277572 0.3184586 0.5761894 0.4254902 .. 0.9761982 0.2518960 0.4391129 0.0759304 0.2559380 0.0670617 0.7651132 0.0417362 .. 0.3438272 0.1970167 0.2122899 0.3140399 0.7821625 0.0540932 0.9190207 0.4603516 .. 0.2992685 0.0029166 0.8993471 0.8387927 0.4343749 0.7767876 0.1395318 0.1150637 .. 0.5355420 0.4311733 0.6145385 0.9258962 0.0993817 0.4280579 0.9431831 0.0327395 .. 0.9213267 0.9449024 0.9007070 0.8094316 0.0251954 0.0019645 0.5075221 0.4076043 .. 0.8408046 0.5017266 0.9128781 0.4435729 0.5983784 0.7741843 0.7922008 0.5504605 .. 0.4085044 0.7217438 0.4768536 0.6393058 0.9963865 0.1574788 0.5350694 0.2129065 .. 0.5591451 0.4304966 0.0228055 0.5761460 0.7149130 0.9321636 0.1232699 0.2865552 0.0124800 .. 0.5769405 0.3938696 0.6888584 0.9702322 0.8515764 0.3393304 0.8772532 0.1131402 .. 0.5264128 0.5297394 0.9291756 0.9765430 0.6225464 0.9822583 0.7542989 0.5454788 .. 0.7286016 0.0252597 0.4025168 0.0983132 0.2608625 0.3636342 0.1746618 0.9234139 .. 0.7605141 0.5640204 0.3797065 0.8776226 0.8217426 0.6787058 0.0822010 0.2552731 .. 0.7444457 0.2269504 0.6836931 0.9365073 0.5053017 0.2524815 0.6818840 0.2836368 .. 0.1409486 0.6759110 0.4512678 0.7543029 0.1370214 0.6608241 0.3890054 0.7001821 .. 0.9168006 0.2122900 0.2697833 0.3199889 0.0232180 0.7265447 0.1534059 0.2355264 .. 0.0879738 0.7105954 0.6888728 0.6595319 0.1815116 0.3904966 0.1586905 0.6240715 .. 0.6376036]; a = [0.2146008 0.3126420 0.3616361 0.2922267 0.5664249 0.4826472 0.3321719 0.5935095 0.5015342 0.4368588 0.2693125 0.6325745 0.4051954 0.9184708 0.0437334 0.4818509 0.2639556 0.4148104 0.2806498 0.1280058 0.7783129 0.2119030 0.1121355 0.6856896 0.1531217 0.6970851 0.8415518 0.4062025 0.4094825 0.8784126 0.1138360 0.1998338 0.5618661 0.5896177 0.6853980 0.8906225 0.5042213 0.3493615 0.3873779 0.9222899 0.9488184 0.3435337 0.3760119 0.7340941 0.2615761 0.4993494 0.2638578 0.5253563 0.5376230 0.1199926 0.2256303 0.6274093 0.7608433 0.0485566 0.6723950 0.2017173 0.3911574 0.8300317 0.5878720 0.4829179 0.2232865 0.8400886 0.1205996 0.2855364 0.8607515 0.8494102 0.5257061 0.9931210 0.6488563 0.9923191 0.0500420 0.7485507 0.4104059 0.6084526 0.8544211 0.0642647 0.8279083 0.9262344 0.5667211 0.5711639 0.8160110 0.0568928 0.5595937 0.1249340 0.7279222 0.2677766 0.5465335 0.9885408 0.7395657 0.0037173 0.5900573 0.3096467 0.2552206 0.6251879 0.1157417 0.6117004 0.6783956 0.3320095 0.0258710 0.5174468 0.3916873 0.2413538 0.5064435 0.4236102 0.2893728 0.0887932 0.6212882 0.3454984 0.7064868 0.5211472 0.2870401 0.6502795 0.0881335 0.4498763 0.7227253 0.8976796 0.2427822 0.4337721 0.9677053 0.5068534 0.5232976 0.5596948 0.5617307 0.4681760 0.7794547 0.7901072 0.9808542 0.8187066 0.4256872 0.2461561 0.9229532 0.1000746 0.4678218 0.3950498 0.0366117 0.5175369 0.8325452 0.6104832 0.1871112 0.0189575 0.8433565 0.0748595 0.8532815 0.0124590 0.1867539 0.4920584 0.7489608 0.9414957 0.2124056 0.5795020 0.2628148 0.4360987 0.9110545 0.8082667 0.8102653 0.2590428 0.4139087 0.3599928 0.6912788 0.7656859 0.3572650 0.7693400 0.5477634 0.0962289 0.9561172 0.2207409 0.0143259 0.8191490 0.1304993 0.9682004 0.6561381 0.2445539 0.5283124 0.8468926 0.7876622 0.1262083 0.7883861 0.3453042 0.2659857 0.9709819 0.8875248 0.2066753 0.8525161 0.6744698 0.9152874 0.0284860 0.2367841 0.7015344 0.1202527 0.8287412 0.3161073 0.5305191 0.5715175 0.0478015 0.8248620 0.5798843 0.2791808 0.9545111 0.9071155 0.3360149 0.1175613 0.9253724 0.7263671 0.9009498 0.3948993 0.5655180 0.7061490 0.6787831 0.4132936 0.1402291 0.4952356 0.4194877 0.8626222 0.2857510 0.2512136 0.3389102 0.3921976 0.4681552 0.3361603 0.5336877 0.2039064 0.1589990 0.0181815 0.4098371 0.0105835 0.1965310 0.2725595 0.3437655 0.2033702 0.3011945 0.2762596 0.2944531 0.5718074 0.2141770 0.6895462 0.5855573 0.4204123 0.4277572 0.3184586 0.5761894 0.4254902 0.9761982 0.2518960 0.4391129 0.0759304 0.2559380 0.0670617 0.7651132 0.0417362 0.3438272 0.1970167 0.2122899 0.3140399 0.7821625 0.0540932 0.9190207 0.4603516 0.2992685 0.0029166 0.8993471 0.8387927 0.4343749 0.7767876 0.1395318 0.1150637 0.5355420 0.4311733 0.6145385 0.9258962 0.0993817 0.4280579 0.9431831 0.0327395 0.9213267 0.9449024 0.9007070 0.8094316 0.0251954 0.0019645 0.5075221 0.4076043 0.8408046 0.5017266 0.9128781 0.4435729 0.5983784 0.7741843 0.7922008 0.5504605 0.4085044 0.7217438 0.4768536 0.6393058 0.9963865 0.1574788 0.5350694 0.2129065 0.5591451 0.4304966 0.0228055 0.5761460 0.7149130 0.9321636 0.1232699 0.2865552 0.0124800 0.5769405 0.3938696 0.6888584 0.9702322 0.8515764 0.3393304 0.8772532 0.1131402 0.5264128 0.5297394 0.9291756 0.9765430 0.6225464 0.9822583 0.7542989 0.5454788 0.7286016 0.0252597 0.4025168 0.0983132 0.2608625 0.3636342 0.1746618 0.9234139 0.7605141 0.5640204 0.3797065 0.8776226 0.8217426 0.6787058 0.0822010 0.2552731 0.7444457 0.2269504 0.6836931 0.9365073 0.5053017 0.2524815 0.6818840 0.2836368 0.1409486 0.6759110 0.4512678 0.7543029 0.1370214 0.6608241 0.3890054 0.7001821 0.9168006 0.2122900 0.2697833 0.3199889 0.0232180 0.7265447 0.1534059 0.2355264 0.0879738 0.7105954 0.6888728 0.6595319 0.1815116 0.3904966 0.1586905 0.6240715 0.6376036]; ________________________________ [Avast logo] <https://www.avast.com/antivirus> El software de antivirus Avast ha analizado este correo electrónico en busca de virus. www.avast.com<https://www.avast.com/antivirus> This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/
_______________________________________________ users mailing list - users@lists.scilab.org Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org> https://lists.scilab.org/mailman/listinfo/users