Info

This question is closed. Reopen it to edit or answer.

Excel のtableにラベル​し、Tiff ファイ​ルとして保存

1 view (last 30 days)
Saito
Saito on 16 Jul 2020
Closed: MATLAB Answer Bot on 20 Aug 2021
Excelの中の最大値をマークし、それをTableとしてTiffファイルに保存しようとしています。
例えば添付したデータを以下のように処理して行ってみたのですが
関数 'addStyle' (タイプ'matlab.ui.style.Style' の入力引数) が未定義です。
と表示され、出来ませんでした。
k=data;
fig=uifigure;
k=k(1:7,1:7);
unit=uitable(fig,'Data',k);
uit.Data = k;
p=max(MeanFiringdata);
P=max(p);
styleIndices =MeanFiringdata==P;
[row,col] = find(styleIndices);
s = uistyle('BackgroundColor','yellow');
addStyle(uit,s,'cell',[row,col]);
どうしたら良いでしょう?
  1 Comment
Kei Otsuka
Kei Otsuka on 23 Jul 2020
今お使いのMATLABバージョンを教えて頂けますか?
addStyleはR2019b以降でサポートされていますので、古いバージョンですと利用することができません。

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!