How to create matrices from a meshgrid function
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
jgillis16
il 23 Giu 2015
Commentato: jgillis16
il 23 Giu 2015
'The scatter3 plot needs vectors, not matrices, but you can do that easily enough by using meshgrid to create the matrices and then creating vectors from them as RA(:), DEC(:) and A(:).'
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 23 Giu 2015
Modificato: Azzi Abdelmalek
il 23 Giu 2015
a=1:0.1:10
b=1:0.1:10
[A,B]=meshgrid(a,b)
C=sin(A).*cos(B) % Example
scatter3(A(:),B(:),C(:))
3 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Scatter Plots 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!