Borrar filtros
Borrar filtros

Specifying axis title for a specific tick mark range

2 visualizaciones (últimos 30 días)
Dinal Jayasekera
Dinal Jayasekera el 15 de Abr. de 2019
Respondida: A. Sawas el 15 de Abr. de 2019
I am plotting an adjacency matrix using MATLAB and I would like to specify one axis title for a specific range of tick marks and a different axis title for a different range of tick marks within the same axis. So for example, label the ticks from 0 - 180 as "Left hemisphere" and 180-360 as "Right Hemishphere" for both the x and y axes. I have shown my current code below. How would I go about doing this?
M = importdata('correlation.txt')
imagesc(M); % plot the matrix
hold on
xticks([0 180 360])
yticks([0 180 360])
title('Functional Connectivity', 'FontSize', 14); % set title
colormap('jet'); % set the colorscheme
colorbar; % enable colorbar
hold off

Respuestas (1)

A. Sawas
A. Sawas el 15 de Abr. de 2019
From the figure window, click menu Insert --> TextBox

Categorías

Más información sobre Formatting and Annotation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by