Can you help me with xlswrite?

1 回表示 (過去 30 日間)
Kyungsun Ha
Kyungsun Ha 2017 年 3 月 6 日
コメント済み: KSSV 2017 年 3 月 6 日
>> n=10;
for k=1:n;
exp_tmp=['DNA',num2str(k),'=randseq(20);'];
eval(exp_tmp);
xlswrite('C:\Users\BFSL\Desktop\1.xlsx',[strcat('DNA',num2str(k))],strcat('A',num2str(k),:,'B',num2str(k)));
end
I want to make...
1. generate random DNA -> 2. save in excel like this(image below);
but reality is... (below)
can someone help me?
+generating is success

採用された回答

KSSV
KSSV 2017 年 3 月 6 日
編集済み: KSSV 2017 年 3 月 6 日
clc; clear all ;
n=10;
exp_tmp = cell(n,2) ;
for k=1:n;
% exp_tmp{k}=['DNA',num2str(k),'=randseq(20);'];
% exp_tmp{k}=['DNA',num2str(k),' generated sequence',num2str(k)] ;
exp_tmp{k}=['DNA',num2str(k),' ',randseq(20)] ;
% eval(exp_tmp);
% xlswrite('C:\Users\BFSL\Desktop\1.xlsx',[strcat('DNA',num2str(k))],strcat('A',num2str(k),:,'B',num2str(k)));
end
xlswrite('DB.xls',exp_tmp) ;
  4 件のコメント
Kyungsun Ha
Kyungsun Ha 2017 年 3 月 6 日
randseq is function.. (randomly generate DNA sequence)
KSSV
KSSV 2017 年 3 月 6 日
Answer edited..

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGenomics and Next Generation Sequencing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by