Write data to matlab file
I'd like to write output data to a Matlab file.
I already did this in an older FEniCS version. Now
I changed to the new Ubuntu version
1:1.0-beta2-
The following code used to work, but now I
get an error and I can't find a solution to it.
mesh = UnitSquare(10,10)
mesh.order()
V = FunctionSpace(mesh, "Lagrange", 2)
conc = Function(V)
# calculate conc...
conc_file = File("test.m")
conc_file << conc.vector()
The error is:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
_cpp.
RuntimeError: *** Error: Unknown file type for "test.m".
I'm sorry about asking again something about the new version,
but has anything changed in the syntax (I couldn't find it out),
is something wrong with my installation or isn't it possible anymore
to write Matlab files?
Thanks for any help!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Johan Hake
- Solved:
- Last query:
- Last reply: