フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Assignment has more non-singleton rhs dimensions than non-singleton subscripts

1 回表示 (過去 30 日間)
Hamza Karakurt
Hamza Karakurt 2018 年 3 月 8 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello, I am trying to take expression values of 570 genes (let's call it a) from 13514 gene cell array (lets call it b). B involves most of the genes in a but when it cannot find the string in b, it gives me the error message "Assignment has more non-singleton rhs dimensions than non-singleton subscripts". My code is:
exprs_cont = zeros(length(modelgenes),1);
for i=1:length(modelgenes);
a(i,1) = find(strcmp(genes,modelgenes(i)));
exprs_cont(i,1)=mean_cnt(a,1);
end
Actually, I want this to give -1 when cannot find any matching string. Anyone have advices? (It's been about 35 hours without sleep so sorry for my grammar mistakes)
  3 件のコメント
Hamza Karakurt
Hamza Karakurt 2018 年 3 月 8 日
My variables are here.
Thank you.
Birdman
Birdman 2018 年 3 月 8 日
mean_cnt?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by