Re: write in a file
chiara germani wrote:
Hi,
i have a problem: is it possible to write a file bit a bit?
Functions in Matlab also write in 8 bit. I need to do write a file
using single bit as in Fortran. In Fortran the function is mvbits.
Thank you
Bye Chiara
Would something like
a=0;
a=uint8(a);
for idx=1:8
a=setbit(a,idx,[0 or 1]);
end
fprintf(fid,'%u',a);
do? I mean, it's a workaround, but you'd have what you want...
.
Relevant Pages
- Re: MATLAB <-> FORTRAN
... When you do A\b it just calls the basic solvers Matlab knows, ... in some cases Gauss Elimination. ... In this case you can find a Gauss Solver, ... I've bitten the bullet and converted to Fortran ... (comp.soft-sys.matlab) - Re: Matlab Vectorisation Speed - How is it done in c++?
... Beating the performance of vectorized Matlab code is very ... Matlab makes calls to optimized C and Fortran libraries ... Use optimization level 3 on numerical code and level 2 on non- ... (comp.soft-sys.matlab) - Re: Calling MATLAB from Fortran
... Fortran saves the data which Matlab m-file needs and then Matlab would read them as input from the file and after calculation save then in a file for Fortran. ... returns mxArray * ... (comp.soft-sys.matlab) - Re: pass 1D vector from matlab to fortran
... matlab to fortran: ... %input: timeseries ts and constants ... polynomial in seasonal smoothing ... (comp.soft-sys.matlab) - Re: Problems when calling functions from a .dll
... > I have quite some problems with calling functions from a .dll. ... originally written in Fortran and compiled by ... > PRECISION (double in Matlab); ... > as a basic for my header file, which is based on the example file ... (comp.soft-sys.matlab) |
|