Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How can I add this text with values into my legend?
조회 수: 1 (최근 30일)
이전 댓글 표시
I have the following code for my plot legend currently:
baseNames = {'T9C11','T8C7','T8C5','T9C6'};
baseValues = mutualInfoTotal([67 52 50 62]); % or whatever the indices are
NewNames = cellspikes(numel(baseNames,1));
for idx = 1:length(baseNames)
NewNames{idx} = sprintf('%s, MI = %2.2f',baseNames{idx},baseValues(idx));
end
legend(NewNames)
which ends up saying something like "T9C11, MI = 43.95" for each entry on the legend. But I would like to change this to "T9C11, MI = 43.95 bits/sec; 3.45 bits/spk" So I would like to draw from the corresponding index values of a different variable, MISpikeTotal, for the bits/spk values. How can I do this?
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!