Info

This question is closed. Reopen it to edit or answer.

Why Matlab 'nodesktop' does not support long instruction ?

1 view (last 30 days)
Hello everyone,
This is a very simple question. I would like to copy and paste manually from a txt file the content of a Matrix (see below) [[0.742160705,0.772777539,0.8085917278,0.851463682,0.9044355397,0.9198131451,0.927887687,0.9449011119,0.9492125817,0.956090946,0.9623506401,0.967516862,0.9693187967,0.9776010062,0.981,0.981,0.9648727396,0.9465675452,0.6917886149,0.4044549338];[0.8298971964,0.8522637749,0.8770944892,0.904939024,0.9365504713,0.945158048,0.9495807304,0.9586779147,0.9613808455,0.9656332706,0.969812231,0.9733097621,0.9747860815,0.9740629263,0.9728414885,0.9716193132,0.9648727396,0.9465675452,0.6917886149,0.4044549338];[0.9024660891,0.9149952159,0.9282289152,0.94224446,0.9571324365,0.961002885,0.9629616083,0.966927255,0.9683055586,0.9712226312,0.9743193559,0.9767146637,0.9776329986,0.9754918692,0.9739842616,0.9724761062,0.9654404929,0.946846294,0.6918701484,0.4044787725];[0.9329468807,0.9404406811,0.9481770909,0.9561711749,0.9644394351,0.9665514258,0.9676143623,0.9697543087,0.9706698448,0.9731238307,0.9758477916,0.9778657915,0.9785940032,0.9759723573,0.9743682244,0.9727637571,0.9656309554,0.9469397317,0.6918974659,0.4044867583];[0.9353679558,0.9424375619,0.9497224385,0.9572351409,0.9649893479,0.9669673557,0.9679624443,0.9699649477,0.9708458224,0.9732651935,0.9759613432,0.9779512404,0.9786653092,0.9760079718,0.9743966783,0.9727850692,0.9656450638,0.9469466515,0.6918994887,0.4044873496];[0.9360727131,0.943018157,0.9501711939,0.9575437038,0.965148609,0.9670877707,0.9680631985,0.970025896,0.9708967367,0.9733060892,0.9759941908,0.9779759567,0.9786859339,0.9760182721,0.9744049074,0.9727912328,0.965649144,0.9469486527,0.6919000737,0.4044875206];[0.9341185758,0.9414075377,0.9489256922,0.956686853,0.9647061113,0.9667531568,0.9677831985,0.9698564935,0.9707552179,0.9731924134,0.9759028833,0.9779072498,0.9786286001,0.9759896378,0.9743820306,0.9727740981,0.9656378011,0.9469430893,0.6918984474,0.4044870452];[0.9291357065,0.9372899281,0.9457327734,0.9544838784,0.9635649369,0.9658895186,0.9670602264,0.9694187312,0.9703894358,0.9728985361,0.9756667936,0.9777295679,0.9784803177,0.9759155654,0.9743228492,0.9727297696,0.9656084552,0.9469286953,0.6918942396,0.4044858152];[0.925598727,0.9343578754,0.9434515334,0.9529043029,0.9627435807,0.9652673036,0.9665390948,0.9691028643,0.9701254386,0.9726863804,0.9754963208,0.9776012429,0.9783732144,0.9758620495,0.9742800896,0.9726977398,0.9655872499,0.9469182937,0.6918911988,0.4044849263]]
When I copy and paste this content into a "normal" matlab session it works. However when I copy ans paste it into a matlab session of the type 'nodesktop' (ex: matlab session opened from a C++ program through engOpen) then I get the following message "Error using vertcat - Dimensions of matrices being concatenated are not consistent ". It seems to be linked to the length of the instruction as it can fit in a single row with a "normal session" but requires several rows in 'nodesktop'.
Any solution to this problem would be much appreciated.
Thanks

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!