How to plot columns of matrix A(size:k X m) vs columns of matrix B( size: k X n)

조회 수: 3 (최근 30일)
Mysurareddy Yerramreddy
Mysurareddy Yerramreddy 2020년 9월 23일
편집: KSSV 2020년 9월 23일
I had matrix A of size k X m and matrix B of size k X n. How to plot columns of A as X axis and columns of B as Y axis.
  댓글 수: 1
VBBV
VBBV 2020년 9월 23일
편집: KSSV 2020년 9월 23일
plot(A(1,:),B(1,:),'b');% 1st row
for i = 1:k
plot(A(i,:),B(i,:),'b'); % all rows
hold on
end

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

답변 (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