Reducing the points on x -axis

Hi Here is my program. I want to reduced the points of plotting on x-axis. It should start from -4 to +4.(changes required) Y-axis: 0 to 1 clc; g=0.43; z=-0.001:0.01:2.322; k=0.272; f=g*z+k; plot(log(z),f-0.272)

 Respuesta aceptada

VBBV
VBBV el 1 de Abr. de 2021

0 votos

%if
clc; g=0.43; z=-0.001:0.01:2.322; k=0.272; f=g*z+k; plot(log(z),f-0.272);xlim([-4 4])
Try this

1 comentario

shafaq riaz
shafaq riaz el 2 de Abr. de 2021
Hi u r right but I want a graph like u seen in attached picture.. Can u do some changes in my programming so that I can get a graph like this

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 1 de Abr. de 2021

Comentada:

el 2 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by