MATLAB: Regarding file convertion from one format to another format


sir, i want to convert a binary data into .nc file using netcdf,how can i?

Best Answer

  • First, read the data into MATLAB using fopen and fread. You could then use the nc* family of functions like nccreate to write the data into a NetCDF file.
    If you run into issues, consider updating the question with additional information about the binary data (What is the size? What are the axis?)