亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? som_write_data.m

?? 適用于需要用matlab環境
?? M
字號:
function som_write_data(sData, filename, missing)%SOM_WRITE_DATA Writes data structs/matrices to a file in SOM_PAK format.%% som_write_data(data,filename,[missing])%%  som_write_data(sD,'system.data')%  som_write_data(D,'system.data','*')%%  Input and output arguments ([]'s are optional): %   data        (struct) data struct to be written in the file%               (matrix) data matrix%   filename    (string) output filename%   [missing]   (string) string used to denote missing components (NaNs); %                default is 'NaN'%% Note that much of the information in the data struct is lost.% Typically, when saving data structs into files use the 'save' command.%% For more help, try 'type som_write_data' or check out online documentation.% See also  SOM_READ_DATA, SOM_READ_COD, SOM_WRITE_COD.%%%%%%%%%%%%% DETAILED DESCRIPTION %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% som_write_data%% PURPOSE%% Writes data structs/matrices to a file in SOM_PAK format.%% SYNTAX%%  som_write_data(sD,'filename')%  som_write_data(D,'filename')%  som_write_data(...,'missing')%% DESCRIPTION%% This function is offered for compatibility with SOM_PAK, a SOM software% package in C. It writes data structs/matrices to a file in SOM_PAK format.%% See SOM_READ_DATA for a decription of the SOM_PAK data file format. Since% the format does not support information on normalizations, that% information is lost, as well as the data name. The component names are% written on a comment line which begins with '#n' and label names on% comment line which begins with '#l', respectively. Any spaces (' ') in the% component names and in the label names are replaced with% underscores ('_').%% This function is only offered for compatibility with SOM_PAK. In% general, when saving data in files, use 'save filename.mat sData'. This is% faster and retains all information of the data struct.%% The string to use for missing values (NaNs) in the written file can% be given with the last argument. Notice that if you use SOM_PAK to% read the files, you need to set the SOM_PAK environment variable% LVQSOM_MASK_STR accordingly, e.g. to 'NaN' if you use the default% replacement. For more information, see the SOM_PAK instructions.%% REQUIRED INPUT ARGUMENTS%%  data        (struct or matrix) data to be written%  filename    (string) output filename%% OPTIONAL INPUT ARGUMENTS%%  missing     (string) string used to denote missing components (NaNs); %               default is 'NaN'%% EXAMPLES%% The basic usage is:%  som_write_data(sData,'system.data')%% To write a data matrix to a file in plain SOM_PAK format, give a% data matrix as the first argument: %  som_write_data(D,'system.data')%% By default, all NaNs in the data matrix are written as 'NaN':s. The% third argument can be used to change this:%  som_write_data(sData,'system.data','+')%  som_write_data(sData,'system.data','missing')%% SEE ALSO%%  som_read_data    Reads data from an ascii file.%  som_read_cod     Read a map from a file in SOM_PAK format.%  som_write_cod    Writes data struct into a file in SOM_PAK format.% Copyright (c) 1997-2000 by the SOM toolbox programming team.% http://www.cis.hut.fi/projects/somtoolbox/% Version 1.0beta ecco 131197% Version 2.0beta ecco 030899 juuso 151199%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% check argumentserror(nargchk(2, 3, nargin));  % check no. of input args is correct% dataif isstruct(sData)  is_struct = 1;  D = sData.data;else   is_struct = 0;  D = sData; end[samples dim] = size(D);% missingif nargin == 2, missing = 'NaN'; end% open output filefid = fopen(filename, 'w');if fid < 0, error(['Cannot open file ' filename]); end% check versionv = version;ver_53_or_newer = (str2num(v(1:3)) >= 5.3);%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% write data% write dimensionfprintf(fid, '%d\n', dim);% write component names as a SOM_PAK comment lineif is_struct,  fprintf(fid,'#n ');                       for i = 1:dim, fprintf(fid, '%s ', strrep(sData.comp_names{i},' ','_')); end  fprintf(fid,'\n');                        if ~isempty(sData.label_names)    fprintf(fid,'#l ');                         l = length(sData.label_names);    for i = 1:l,  fprintf(fid, '%s ', strrep(sData.label_names{i},' ','_')); end    fprintf(fid,'\n');                        endend% are there NaNs and/or labels?has_nans = isnan(sum(D,2)) * (~strcmp(missing, 'NaN'));has_labels = 0;if is_struct  [lines numlabs] = size(sData.labels);  has_labels = zeros(lines, 1);  if ver_53_or_newer    has_labels = sum((~(cellfun('isempty', sData.labels))), 2);  else    for i = 1:lines      for j = 1:numlabs	if ~isempty(sData.labels{i,j}) 	  has_labels(i) = 1; break; 	end      end    end  endend% write dataform = [repmat('%g ',[1 dim-1]) '%g\n'];if ~sum(has_labels) & ~sum(has_nans)    % no NaNs, no labels  fprintf(fid, form, D'); elseif ~sum(has_labels)                 % no labels, NaNs  fprintf(fid, '%s', strrep(sprintf(form, D'), 'NaN', missing));else                                    % labels and NaNs  for i = 1:samples    if has_nans(i)      fprintf(fid, strrep(sprintf('%g ', D(i,:)), 'NaN', missing));    else      fprintf(fid, '%g ', D(i,:));    end        if has_labels(i)      temp = '';      if ver_53_or_newer	nonempty = ~(cellfun('isempty', sData.labels(i,:)));      else	for j = 1:numlabs, nonempty(j) = ~isempty(sData.labels{i, j}); end      end      labs = char(sData.labels{i, nonempty});      labs(:,end + 1) = ' ';      temp = reshape(labs',[1 prod(size(labs))]);      temp(findstr('  ', temp))='';      fprintf(fid, '%s', temp(1:end-1));    end    fprintf(fid,'\n');  endend% close fileif fclose(fid),   error(['Cannot close file ' filename]); else  fprintf(2, 'data write ok\n');end%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩限制级电影在线观看| 久久国产乱子精品免费女| 欧美日韩一级二级| 高清shemale亚洲人妖| 日韩激情在线观看| 亚洲欧美日韩综合aⅴ视频| 精品国产不卡一区二区三区| 欧美三级韩国三级日本三斤| 成人激情校园春色| 久久66热偷产精品| 亚洲福中文字幕伊人影院| 国产色综合一区| 精品国产乱码久久久久久老虎| 色综合天天做天天爱| 国产精品18久久久久久久网站| 亚洲成人激情av| 亚洲在线视频免费观看| 1区2区3区欧美| 中文字幕av在线一区二区三区| 日韩一级高清毛片| 欧美日韩成人综合天天影院 | 成人午夜av在线| 激情六月婷婷久久| 蜜桃视频在线观看一区| 亚洲国产综合91精品麻豆| 综合久久久久久久| 成人欧美一区二区三区在线播放| 亚洲国产精品黑人久久久| 亚洲精品在线免费观看视频| 欧美一区二区三区播放老司机| 欧美人妇做爰xxxⅹ性高电影| 在线欧美小视频| 色8久久精品久久久久久蜜| 99久久精品国产一区| 99久久综合狠狠综合久久| 成人一区二区三区视频| www.在线欧美| 99re热这里只有精品视频| 成人高清免费观看| 日韩欧美一区二区三区在线| 欧美精品三级日韩久久| 欧美性猛交一区二区三区精品| 欧美在线视频你懂得| 欧美日韩一级视频| 日韩一级片网址| 2023国产一二三区日本精品2022| 久久综合一区二区| 日本一区二区三区四区| 中文字幕一区三区| 一区二区在线免费| 午夜精品久久久久久| 蜜臀av性久久久久蜜臀aⅴ| 精品一区二区三区香蕉蜜桃 | **欧美大码日韩| 亚洲人成网站精品片在线观看 | 国产精品一区二区在线观看网站| 国产九九视频一区二区三区| 国产成人综合视频| 91啪亚洲精品| 欧美丰满美乳xxx高潮www| 91精品国产91久久综合桃花| 精品免费视频.| 中文字幕亚洲一区二区va在线| 亚洲一区二区五区| 久久国内精品视频| 成人中文字幕合集| 欧美优质美女网站| 2020国产精品自拍| 亚洲免费观看高清完整版在线| 婷婷国产在线综合| 国产一区二区中文字幕| 成人国产精品免费观看视频| 91久久国产最好的精华液| 91精品在线观看入口| 国产日韩精品一区二区三区| 亚洲婷婷综合久久一本伊一区| 婷婷综合久久一区二区三区| 国产精品综合在线视频| 欧美中文字幕亚洲一区二区va在线| 日韩小视频在线观看专区| 1区2区3区国产精品| 美女诱惑一区二区| 91精品办公室少妇高潮对白| 日韩一级大片在线| 日韩美女精品在线| 免费成人你懂的| 一本一道综合狠狠老| 精品美女在线观看| 亚洲午夜羞羞片| 成人免费黄色在线| 91精品国产入口在线| 最新久久zyz资源站| 久久福利视频一区二区| 色偷偷成人一区二区三区91| 久久蜜桃一区二区| 午夜免费久久看| 色综合中文字幕国产 | 中文字幕二三区不卡| 五月激情综合婷婷| 91免费小视频| 久久久久久久久久久99999| 午夜视频在线观看一区| 99视频有精品| 国产蜜臀av在线一区二区三区| 免费观看一级欧美片| 精品视频免费在线| 亚洲欧美日韩综合aⅴ视频| 国产91露脸合集magnet| 日韩一二三区视频| 亚洲成av人片在线观看无码| av电影在线不卡| 国产区在线观看成人精品| 久久成人免费网| 日韩欧美的一区| 午夜av电影一区| 欧美色欧美亚洲另类二区| 国产精品视频观看| 国产精品亚洲午夜一区二区三区 | 欧美日本一区二区三区| 亚洲欧美日韩一区二区三区在线观看| 国产精品一区二区久久精品爱涩| 欧美日韩精品福利| 亚洲.国产.中文慕字在线| 99久免费精品视频在线观看 | 午夜精品福利视频网站| 色av一区二区| 亚洲欧美日韩国产手机在线| 99视频国产精品| 亚洲婷婷在线视频| 色婷婷久久久久swag精品| 亚洲美女区一区| 91免费看`日韩一区二区| 亚洲女与黑人做爰| 色噜噜狠狠色综合中国| 国产精品每日更新| 久久久综合九色合综国产精品| 在线亚洲一区二区| 精品一区二区三区免费观看| 欧美一级搡bbbb搡bbbb| 性久久久久久久久| 欧美福利电影网| 日本在线不卡视频| 日韩视频一区二区| 九九热在线视频观看这里只有精品| 欧美一区二区视频免费观看| 奇米精品一区二区三区在线观看一| 欧美电影在线免费观看| 青青草成人在线观看| 精品少妇一区二区| 丁香另类激情小说| 亚洲精品中文在线观看| 欧亚一区二区三区| 男人的天堂亚洲一区| 久久影院视频免费| 成人午夜视频在线| 一区二区三区电影在线播| 欧美少妇bbb| 伦理电影国产精品| 国产日韩三级在线| 91在线视频官网| 亚洲成人一区二区| 欧美电影免费观看高清完整版| 国产精品456露脸| 一区二区三区波多野结衣在线观看| 欧美在线999| 国产综合久久久久影院| 午夜精品福利视频网站| 精品久久久久久久久久久久久久久久久 | 成人av在线播放网址| 亚洲精品国产第一综合99久久| 欧美老人xxxx18| 国产盗摄女厕一区二区三区| 最近日韩中文字幕| 欧美成人a在线| 99热精品一区二区| 日本视频免费一区| 国产精品久线在线观看| 欧美夫妻性生活| 成人国产精品视频| 免费人成精品欧美精品| 亚洲天堂av一区| 欧美成人猛片aaaaaaa| 91麻豆国产福利精品| 久久国产剧场电影| 一区二区三区不卡视频 | 久久女同互慰一区二区三区| 日本乱码高清不卡字幕| 久久99精品久久久久久国产越南| 国产精品国产三级国产aⅴ入口| 奇米综合一区二区三区精品视频| 日韩影院免费视频| 蜜桃久久精品一区二区| 久久色在线观看| 欧美最猛黑人xxxxx猛交| 久久不见久久见免费视频1| 亚洲人被黑人高潮完整版| 久久婷婷国产综合精品青草| 在线观看不卡视频| 成人深夜福利app| 麻豆久久久久久|