If A is a matrix how do I plot selected columns and or selected rows ?

조회 수: 2 (최근 30일)
johnaly7
johnaly7 2017년 10월 26일
댓글: johnaly7 2017년 10월 26일
I have a matrix A of 522x40 and another matrix B or 522x1 (they contain spectra, where A is the response and B is the wavelength.
I would like to plot on a graph the first 10 columns on my matrix together, is there a command like plot (B, A,:[1])) but for multiple columns ? or do i have to do
hold all plot (B,A,:[1]) plot (B,A,:[2]) etc ?
Many thanks in advance !!!!!!
  댓글 수: 2
Stephen23
Stephen23 2017년 10월 26일
Did you read the plot help? It explains how to plot columns of a matrix.
johnaly7
johnaly7 2017년 10월 26일
Yes, and i got it figured out now !

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by