フィルターのクリア

How to change axis values when using spy command?

4 ビュー (過去 30 日間)
Andrew Poissant
Andrew Poissant 2018 年 5 月 15 日
I have a 1515x1165 matrix of binary data, denoted as A. I also have two vectors, denoted as x and y, that contain the range of x and y values for the matrix of binary data. The vector x is 1x1165 and the vector y is 1515x1. I am trying to plot the matrix using spy(sparse(A)) but the axis labels are the indices for each point. How do I change the axis labels to show my vector of corresponding x and y values? I attached what the plot looks like now. The y and x axis are the index values but I want them to be the range of values in x and y vectors.

回答 (0 件)

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by