问题描述
所以我有以下代码和错误:
int* array = new int[variable][variable2]
这是一个简单的.cdf文件。我希望最终输出为:
但是您看到的>> data = mzcdfread('sample1.cdf');
Reading filename: sample1.cdf
Number of dimensions: 11 Unlimited Dimension: 8
Number of variables: 12 Number of attributes: 10
Exploring global netCDF attributes:
acd_ec_version -> 1.0
dataset_completeness -> C1
aia_template_revision -> 1.0
netcdf_revision -> 3.4
languages -> English
injection_date_time_stamp -> 20120404170129+-0500
separation_experiment_type -> Liquid Chromatography
source_file_reference -> L:\chromatogram\web\sample 1.xy
detector_unit -> AU
retention_unit -> seconds
Exploring netCDF dimensions:
Name Length Dim_ID
_2_byte_string 2 1
_4_byte_string 4 2
_8_byte_string 8 3
_16_byte_string 16 4
_32_byte_string 32 5
_64_byte_string 64 6
_128_byte_string 128 7
_255_byte_string 255 8
acd_ec_count 0 9
error_number 1 10
point_number 17999 11
Reading netCDF variables:
Name Type Dim_ID NumAtt
error_log 2 6 10 0
detector_maximum_value 5 0
detector_minimum_value 5 0
actual_run_time_length 5 0
actual_sampling_interval 5 0
actual_delay_time 5 0
ordinate_values 5 11 1
uniform_sampling_flag -> Y
peak_retention_time 5 0
peak_name 2 0
peak_amount 5 0
peak_area 5 0
peak_height 5 0
>> mzcdf2peaks(data)
Error using mzcdf2peaks (line 27)
Input structure MZCDFSTRUCT must be created by MZCDFREAD.
函数对我不起作用,并导致此错误:
mzcdf2peaks
下面是this的示例,其中他们使用以下命令:
Error using mzcdf2peaks (line 27)
Input structure MZCDFSTRUCT must be created by MZCDFREAD.
当我在Unichrom中打开mzcdf_struct = mzcdfread('results.cdf');
[peaks,time] = mzcdf2peaks(mzcdf_struct)
figure
hold on
for i = 1:numel(peaks)
t = repmat(time(i),size(peaks{i},1),1);
plot3(t,peaks{i}(:,2),'color',colors(i,:))
end
view(70,60)
xlabel('Time')
ylabel(mzcdf_struct.mass_axis_label)
zlabel(mzcdf_struct.intensity_axis_label)
文件时,它会起作用。
您可以在此处访问cdf文件:https://files.fm/u/j7yjb23c
所以我的问题是如何使Matlab sample1.cdf
函数在此数据集上工作?
还有其他方法可以达到所需的输出吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)