Plotting numbers of main diagonal

4 次查看(过去 30 天)
I have a matrix that in the main diagonal has values that vary slightly from 1, almost an identity matrix. How would i plot a graph with all the data in a way that each row represents a of the matrix represents it's own line of values? For example, on the first row there is a one and the rest is zeros, so it would be a line with a peak on the one and the rest a straight line, the second row there is a row on the second row, second column so a peak there and so one forming one big graph showing all the peaks.

采纳的回答

Matt J
Matt J 2018-5-23
surf(yourMatrix,'FaceColor','none');

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by