Creating discretized grid without values, only text
Mostrar comentarios más antiguos
Hi,
I'm trying to recreate a figure that looks similar to this one (reference: Introduction to computation and modeling for differential equations by Lennart Edsberg);

Any help would be greatly appreciated. I don't know how to create a plot without any values (only text on some of the discretizations), and when I create a grid it automatically grids both axis, I just want the x-axis discreticized.
Respuesta aceptada
Más respuestas (1)
Stephan
el 14 de Oct. de 2018
Hi,
Here is a quick and dirty example:
x = [];
y = [];
plot(x,y)
xlim([0 1]);
lines = 0:0.1:1;
for k = 1:numel(lines)
xl(k) = xline(lines(k),'-',{'u(xi,t)=alpha(t)'});
xl(k).LabelVerticalAlignment = 'middle';
end
which results in:

Best regards
Stephan
Categorías
Más información sobre Orange en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
