forgive me the shameless plug, but I think that this could be useful to someone (at least it will remain in the archive). If this is not the most appropriate place, let me know and give me a pointer to the right place.
Recently I had the need to give the results of a simulation to a colleague who would have processed them with some function of hers in Matlab. Since a fast googling did not find anything, I decided to write my own converter .dat -> .mat myself.
Should you have a similar need, you are welcome to get my code (currently distributed only as source code, sorry) at launchpad at URL https://launchpad.net/qucs2mat
The usage is very simple: compile the program and call it by giving the .dat filename on the command line, e.g.,
The result will be saved in example.mat
As said before, currently the code is distributed only as source code, so you will have to compile it by yourself. Since the program is written in Ada, you will need an Ada compiler. Probably your best choice is GNAT (available at http://libre.adacore.com/), a gcc frontend available under GPL.
I hope this is useful.
Hi Riccardo, thanks for sharing, although you and your colleague might be interested to know that we already provide an m-file function to load a qucs dataset into Matlab or Octave.
After installation you can find it in for instance C:\Program Files\Qucs\share\qucs\octave in windows and <install dir>/share/qucs/octave/ in Linux
or you can grap it direct from the repo here (there's a few functions needed):
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.