how to assign a color to specific values in matrix

1 回表示 (過去 30 日間)
baran
baran 2014 年 9 月 15 日
コメント済み: Image Analyst 2014 年 9 月 15 日
hi , i have excel file, i am trying to write a code that find same values in my excel file and assign color to each same values, for example for all "1" assign red. and then make a plot for me,
please help me thank alot

採用された回答

Image Analyst
Image Analyst 2014 年 9 月 15 日
You'll need to use ActiveX. How familiar are you with ActiveX? You can record a macro to do the same thing in Excel then look at the VBA code in Excel and try to copy it over to your MATLAB code. See my ActiveX demo, attached.
  2 件のコメント
baran
baran 2014 年 9 月 15 日
thanks but is there any other way? i dont understand how can i use your exceldemo for my problem. what i should change in this file? is there any easier way? thanks so much
Image Analyst
Image Analyst 2014 年 9 月 15 日
No. MATLAB has no way to directly change the color of cells in Excel other than ActiveX, none that are practical or easier anyway. Perhaps you want to make an Excel macro that your user can run to colorize the cells that need coloring.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by