Grid line for x=0 and y=0

4 ビュー (過去 30 日間)
Dennis
Dennis 2014 年 3 月 18 日
回答済み: Dennis 2014 年 3 月 18 日
Hello! Let us say we have a ordinary graph with x and y axes: I want to have one grid line at x=0 and one at y=0. That would make it much easier to read where a graph is negativ or positive. Couldnt find such possibility here.
Thanks in advance for helping out :-)
Regards Dennis

回答 (3 件)

Jos (10584)
Jos (10584) 2014 年 3 月 18 日
Take a look at GRIDXY, available on the File Exchange:
gridxy(0,0)
would yield exactly what you want. And you can even play with the line-styles

Dennis
Dennis 2014 年 3 月 18 日
That would be exactly what I need! Unfortunately I get the message "Undefined function 'GRIDXY'" which is the same for "XYREFLINE" (I red that this was the command earlier). Do I maybe miss an add-on?
The version Ive installed: R2013b (8.2.0.701)

Dennis
Dennis 2014 年 3 月 18 日
Thanks for your answer, but I dont manage to use your way to plot my function. GRIDXY would be fantastic to use, but as I said, maybe I am missing a system tool or something, because I got the message that GRIDXY is an undefined function.

カテゴリ

Help Center および File ExchangeGraphics Objects についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by