I have created a 13xN matrix where N = ~300K+ columns. The matrix has been formed by 13 different vectors each of which has been processed separately and then normalized individually between 0 & 1. A simple imagesc (see fig1.jpg) plot of the matrix shows me the colour distribution but now I want to add some axis labels and ticks and when I attempt to do that by using the axis command, I get solid colorbars (see fig2.jpg) instead of the distributed colours as I would see in the default imagesc implementation.
How do I add axis ticks and limits while still maintaining the imagesc plot?

 채택된 답변

Rik
Rik 2017년 11월 16일

0 개 추천

You overlooked the exponent. The x-axis stretches to 3e5, not just 30.

댓글 수: 4

imaging_tech
imaging_tech 2017년 11월 16일
I understand. The current x axis represents about 300k+ columns and I would like to instead display time on the axis from 0 to 30 seconds. What could I do to achieve that?
Rik
Rik 2017년 11월 16일
You can hack it by setting the xticklabels manually to specified xticks.
If this page doesn't help, just let me know and I'll provide some code.
imaging_tech
imaging_tech 2017년 11월 16일
Thanks for the help. I was able to fix by going through the documentation.
Rik
Rik 2017년 11월 16일
You're welcome.
If my answer helped you, please mark it as accepted answer. If not, feel free to leave a comment

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Orange에 대해 자세히 알아보기

질문:

2017년 11월 16일

댓글:

Rik
2017년 11월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by