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$
2
  • $\begingroup$ What does Import["E.dat", "List"] return? $\endgroup$ Commented May 18, 2017 at 16:46
  • 2
    $\begingroup$ Take a look at Flatten[ ] $\endgroup$ Commented May 18, 2017 at 17:42

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.