Horizontal constant line plot

I am using plot(1:3600,ones .* 78) 'it gives empty plot' this to plot a horizontal line for y axis is consant 78, x axis is from 1 to 3600 . Or is there another command to plot it .

Antworten (1)

Image Analyst
Image Analyst am 28 Dez. 2017

1 Stimme

ones() is a function that takes arguments. You are not giving any. What do you want to plot for your y values?

1 Kommentar

Neptune16
Neptune16 am 29 Sep. 2019
hello and good day,sir. can you please help me out with my latest question in my profile. very much thanks in advance.

Melden Sie sich an, um zu kommentieren.

Gefragt:

am 28 Dez. 2017

Kommentiert:

am 29 Sep. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by