matlab: move last line of text file to top -


i'm not versed in matlab. i'm working data composed of alphanumerics , symbols. want move bottom line top of file. i've looked other methods use fseek , such, have confused me , using ultra specific file characteristics. there general way this?

thank time.

i think there's no built-in function this. there's easy way think following steps:

  1. read whole file freadf.
  2. move last line in matrix 2 first.
  3. and write file fwrite

Comments