Error in opening a data file with cdf extension

I have been sent data file with a .cdf extension. It is supposed to contain time and light absorbance data. When I use the cdfread('Filename.cdf'), I get an error message in Matlab 2019b
"The file format is netCDF, not CDF. See "help netcdf"
if ncdisplay is used then I get the error message
"Error using ncdisp
Too many output arguments."
Lastly, I tried ncinfo, and then the output is 1x1 structure. How should one proceed to extract numerical data from this file in Matlab? I have tried using PeakFit to open it and save the data as .dat file and then proceed with it, however, it would be better open directly in Matlab.
P.S. I had also tried Import Data, and the output was garbled characters. Thanks

5 件のコメント

Walter Roberson
Walter Roberson 2020 年 12 月 10 日
What was your ncdisp command?
FW
FW 2020 年 12 月 10 日
It was Data = ncdisp('Timeseries.cdf'); and the error is Error using ncdisp Too many output arguments.
Walter Roberson
Walter Roberson 2020 年 12 月 10 日
If you need an output argument then use ncinfo() ncdisp() is for human reading.
FW
FW 2020 年 12 月 10 日
I get a "structure" which 1x1 structure with 7 fields. What should be next step to extract data? Thanks

サインインしてコメントする。

回答 (0 件)

質問済み:

FW
2020 年 12 月 10 日

コメント済み:

2020 年 12 月 10 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by