Displaying genes using inputdlg

1 回表示 (過去 30 日間)
Pat
Pat 2012 年 9 月 3 日
In r i have values as
r=
{6x4 cell}
{6x4 cell}
{5x4 cell}
{4x4 cell}
{3x4 cell}
{2x4 cell}
each cell contains different %of values such as 60%,80%,100% in 4th column
for example r{1,1}
'Genes' 'T0&T2' [] [] 'YBR138C' 'd' [] 60 'YBR235W' 'ud' 3 60 'YBR239C' 'dd' 3 60 'YBR241C' 'du' 3 60 'YBR255W' 'dd' 3 60
i want to display the all cells having 60%,80%,100%
I like to use "inputdlg" function in which if i type 60 i need to display genes have 60% ,same for 80% and 100%
please help

回答 (1 件)

Image Analyst
Image Analyst 2012 年 9 月 3 日
Use two percent symbols in sprintf to get the percent symbol to show up and not be interpreted as a format specifier. For example:
outputString = sprintf('%.2f%%', 12.34);
  1 件のコメント
Pat
Pat 2012 年 9 月 4 日
for example let us assume r{1,1},r{8,1},r{10,1}...has 60%
in "inputdlg" if i type60 i want to display as
X=
{3x4 cell},where X contains r{1,1},r{8,1},r{10,1}

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

カテゴリ

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