Borrar filtros
Borrar filtros

simple plotting in matlab

3 visualizaciones (últimos 30 días)
nida
nida el 4 de Abr. de 2014
Comentada: Azzi Abdelmalek el 4 de Abr. de 2014
x=1:1:30 h=70 y=h/x
i understand they are unequal in length but how would i plot it dividing 70 by x one at a time to plot

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 4 de Abr. de 2014
Editada: Azzi Abdelmalek el 4 de Abr. de 2014
x=1:1:30
h=70
y=h./x
plot(x,y)
  4 comentarios
nida
nida el 4 de Abr. de 2014
Editada: nida el 4 de Abr. de 2014
my question is that keeping x-axis same i want to plot y by dividing h with specific numbers...s.
Azzi Abdelmalek
Azzi Abdelmalek el 4 de Abr. de 2014
x and y must have the same length

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by