How draw 3d plot with 3 different matix size
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
masoumeh solgi
il 14 Mag 2020
Commentato: masoumeh solgi
il 15 Mag 2020
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 Commenti
Risposta accettata
Ameer Hamza
il 15 Mag 2020
Try this
load('germany.mat');
dates = datetime(char(germanyields.Maturity), 'InputFormat', 'yyyy-MM');
surf(gmaturities, dates, gyields)
xlabel('gmaturities');
ylabel('Date');

3 Commenti
Ameer Hamza
il 15 Mag 2020
Modificato: Ameer Hamza
il 15 Mag 2020
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?
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Sensors and Transducers in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!