how can i do this?

13 ビュー (過去 30 日間)
eman baky
eman baky 2021 年 7 月 30 日
コメント済み: DGM 2021 年 7 月 30 日

回答 (1 件)

DGM
DGM 2021 年 7 月 30 日
編集済み: DGM 2021 年 7 月 30 日
Here, at least this can possibly run.
Truth_Taple_mapping = {'T' '0' '0' '0' 'G' '0' '0' 'G' '0'};
dna_stego={'ATG' 'TCG' 'ATC' 'TTC' 'ACC' 'CCC' 'ACC' 'AAC' 'CAG' 'ATC'};
get_codon = ???? % am i supposed to guess what this is?
for m=1:numel(Truth_Taple_mapping) % j is never used as an index
if ~strcmp(Truth_Taple_mapping{m},'0') % the char '0' is not the number 0
for k=1:numel(dna_stego) % none of these length variables are defined
num=get_codon(dna_stego{k});
if (num==1)
temp=dna_stego{k};
temp(3)=Truth_Taple_mapping{m}; % i is an invalid index since it's complex
dna_stego{k}=temp ;
end
end
end
end
Without knowing what is actually being done, there isn't any way to troubleshoot or simplify the code. All I can do is fix the obvious errors.
  2 件のコメント
eman baky
eman baky 2021 年 7 月 30 日
i run the code but not working
Truth_Taple_mapping = {'T' '0' '0' 'G' '0' '0' 'G'};
dna_stego={'ATG' 'TCG' 'ATC' 'TTC' 'ACC' 'CCC' 'ACC' 'AAC' 'CAG' 'ACC'}
%get_codon = ???? % am i supposed to guess what this is?
for m=1:numel(Truth_Taple_mapping) % j is never used as an index
iTruth_Taple_mapping = {'T' '0' '0' 'G' '0' '0' 'G'};
dna_stego={'ATG' 'TCG' 'ATC' 'TTC' 'ACC' 'CCC' 'ACC' 'AAC' 'CAG' 'ACC'}
%get_codon = ???? % am i supposed to guess what this is?
for m=1:numel(Truth_Taple_mapping) % j is never used as an index
if ~strcmp(Truth_Taple_mapping{m},'0') % the char '0' is not the number 0
for k=1:numel(dna_stego) % none of these length variables are defined
num=get_codon(dna_stego{k});
if (num==1)
temp=dna_stego{k};
temp(3)=Truth_Taple_mapping{m}; % i is an invalid index since it's complex
dna_stego{k}=temp ;
end
end
end
end
i run the code but not working
the output is{ 'ATG' 'TCG' 'ATC' 'TTC' 'ACG' 'CCG' 'ACG' 'AAC' 'CAG' 'ACG'}
and must be
{ 'ATG' 'TCT' 'ATC' 'TTC' 'ACG' 'CCC' 'ACC' 'AAC' 'CAG' 'ACG'}
the
TCG,TCC,ACC,CCC that can be change
DGM
DGM 2021 年 7 月 30 日
As I noted, I don't know what the function get_codon() is or what criteria it uses for determining its output state.

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

カテゴリ

Help Center および File ExchangeBuild Configuration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by