plotting 2 matrices with 1 dependent variable

8 ビュー (過去 30 日間)
Akalanka Silva
Akalanka Silva 2014 年 7 月 24 日
回答済み: Michael Haderlein 2014 年 7 月 24 日
I have 2 matrices dependent to 1 variable like..
A1 x11 x12 x13 ... x1n A2 x21 x22 x23 ... x2n A3 x31 x32 x33 ... x2n . . An....
A1 y11 y12 y13 ... y1n A2 y21 y22 y23 ... y2n A3 y31 y32 y33 ... y2n . . An...
I want to plot y data in a contour format by dividing x data in to known bands. so that my x axis will be the variable (A) and y axis will be x bands and plotting value will be y.

回答 (1 件)

Michael Haderlein
Michael Haderlein 2014 年 7 月 24 日
Not sure, but maybe you're looking for the reshape function?
>> reshape([1 2 3 1 2 3],3,2)
ans =
1 1
2 2
3 3

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by