R/write_matrix.R

## Function written to match MATLAB function
## Author: Andrew Hooker

write_matrix <- function (f,x) 
{
  for(i in 1:size(x,1)){
    fprintf(f,"%6e",x[i,])
    fprintf(f,"\n")
  }
  return()
}

Try the PopED package in your browser

Any scripts or data that you put into this service are public.

PopED documentation built on May 21, 2021, 5:08 p.m.