How draw 3d plot with 3 different matix size

4 ビュー (過去 30 日間)
masoumeh solgi
masoumeh solgi 2020 年 5 月 14 日
コメント済み: masoumeh solgi 2020 年 5 月 15 日
Hi everybody. I hav a time series,from 1990 up To 2020 yearly ,and i have a 13 different maturity . There is yiels matrix,which its ros equal no of year and column equel no of maturitis. I want to hve a 3d plot that x= year,y= maturity ,z= yields I use surf(x,y,z) but there is error. Pls help me ?
  2 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 5 月 14 日
Can you share a sample dataset?
masoumeh solgi
masoumeh solgi 2020 年 5 月 15 日
than k you for respone,i attached my data

サインインしてコメントする。

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 15 日
Try this
load('germany.mat');
dates = datetime(char(germanyields.Maturity), 'InputFormat', 'yyyy-MM');
surf(gmaturities, dates, gyields)
xlabel('gmaturities');
ylabel('Date');
  3 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 5 月 15 日
編集済み: Ameer Hamza 2020 年 5 月 15 日
Yes, I rotated it manually. You can try the following code.
load('germany.mat');
ax = axes();
dates = datetime(char(germanyields.Maturity), 'InputFormat', 'yyyy-MM');
surf(gmaturities, dates, gyields)
xlabel('gmaturities');
ylabel('Date');
ax.YDir = 'reverse';
Are you looking for some other modification?
masoumeh solgi
masoumeh solgi 2020 年 5 月 15 日
yes,exactlly:))

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSensors and Transducers についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by