NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Questions related to EJS => Topic started by: mujer_esponja on June 15, 2010, 11:42:40 pm



Title: How to create a .jar which coul generate .m files
Post by: mujer_esponja on June 15, 2010, 11:42:40 pm
Hi!
I am working in create a web page with ejs simulations.
I was asked to generate aswell .m files (MatLab), but i can't find the way to get it.
In my .jar files there is no that option.
Must I do anything else than export the simulation??

Thanks in advance


Title: Re: How to create a .jar which coul generate .m files
Post by: Fu-Kwun Hwang on June 16, 2010, 06:04:55 am
As far as I know, EJS can work with MathLab (as GUI front for mathlab).
But you need to generate .m file with mathlab (not with java)

EJS is a java code generator, so it can generate java output.
Mathlab is a commerical product, you should use mathlab to generate .m file.


Title: Re: How to create a .jar which coul generate .m files
Post by: mujer_esponja on June 19, 2010, 09:06:08 pm
No, you are wrong.
As I know, EJS has an option, eJournal, and you can generate .m files from your simulations.
My problem is that I don't know how to integrate it!!
Thanksanyway


Title: Re: How to create a .jar which coul generate .m files
Post by: Fu-Kwun Hwang on June 19, 2010, 10:11:41 pm
I am sorry that I did not know anything about eJournal!
May be you can ask the author of EJS if such option exists.


Title: Re: How to create a .jar which coul generate .m files
Post by: mujer_esponja on June 20, 2010, 12:31:02 am
Is it possible??how?
I know that option exists, you can check
http://lab.dia.uned.es/automatlab/

tha simulations there have the option to generate a .m file....
If i get an answer abouthow to do this, i will post it here!

Regards!


Title: Re: How to create a .jar which coul generate .m files
Post by: Fu-Kwun Hwang on June 20, 2010, 08:23:37 am
I did check out the web page you have provided. However, it is not related to EJS (Easy java simulation).

A program can generate .m file if the program follow the specification of .m file format and generate it.
I knew that EJS can work with mathlab (read .m file) and EJS cab be used to be a front end for mathlab.
However, I did not know that it is possible to generate .m file from EJS.