0
$\begingroup$

I saved a matlab file with csvwrite command and the import it in mathematica as

energ = Import["E.dat"]

but then I get as the output:

{{0.1}, {0.2}, {0.3}, {0.4}, {0.5}, {0.6} ...

Instead of {0.1, 0.2, 0.3, 0.4, 0.5, 0.6, ... as I'd like.

What can I do? I want to scatter plot two of this lists imported from matlab.

$\endgroup$
  • $\begingroup$ What does Import["E.dat", "List"] return? $\endgroup$ – J. M. will be back soon May 18 '17 at 16:46
  • 2
    $\begingroup$ Take a look at Flatten[ ] $\endgroup$ – Gustavo Delfino May 18 '17 at 17:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.