문제

I am looking for a method to export the execution time of a programm to matlab. I worked with copy/paste method so far ^^ I don't have any experience concerning file interactions with anything else than the console output. So thanks for detailed answers.

So what I imagine to do is storing the results in some matlab-compatible file but any other ideas are welcome. The aim is basically to convert a java array to a matlab matrix.

I am using Eclipse.

Thanks for any help

도움이 되었습니까?

해결책

A solution as mentioned by Daniel

  1. Save your java results in a .txt file that looks like that:

    1 2 3

    4 5 6

    7 8 9

  2. use textscan to convert it into a matlab variable

    file= fopen('whatever.txt')

    Variable=textscan(file,'%d %d %d')

Hoping this is useful to someone else. Any other ideas are welcome.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top