How to plot matrix data ?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Shangeetha Mahendran
le 19 Déc 2018
Réponse apportée : Shangeetha Mahendran
le 19 Déc 2018
why figure 4, 5 are blanck?
sol =pdepe(m,@pdefun,@pdeic,@pdebc,xmesh,zspan);
u=sol(:,:,1)
%%
surf(x,z,u)
xlabel('radi')
ylabel('height')
%%
figure
plot(x/R,u(end,:)/u0)
xlabel('radi')
ylabel('concentration')
%%
figure
plot(z/L,u(:, end)/u0)
xlabel('height')
ylabel('c')
%%
figure
for i =1:zn
hold on
plot(r/R,u(i,:))
hold off
end
xlabel('position ')
ylabel('concentration in every row')
%%
figure
for ii =1:xn
hold on
plot(z/L,u(:,ii))
hold off
end
xlabel('position ')
ylabel('concentration in every row')
2 commentaires
Réponse acceptée
KSSV
le 19 Déc 2018
figure
hold on
for i =1:zn
plot(r/R,u(i,:),'.k')
hold off
end
xlabel('position ')
ylabel('concentration in every row')
%%
figure
hold on
for ii =1:xn
plot(z/L,u(:,ii),'.')
hold off
end
xlabel('position ')
ylabel('concentration in every row')
1 commentaire
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!