What does "Line cannot be a child of line" mean?
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Yilei Huang
am 5 Feb. 2018
Kommentiert: Yilei Huang
am 5 Feb. 2018


When executing this, it says Error using plot Line cannot be a child of Line.
Error in TestMySquareII (line 11) plot(scale,y,'r*'); I do not know why.Hope someone can help me figure out. Thanks.
0 Kommentare
Akzeptierte Antwort
Jos (10584)
am 5 Feb. 2018
semilogx is a command that plots values, it is not a transformation. The output is handle to a line object, not x-values that you can use in the subsequent plot command. So, get rid of the plot command as
semilogx(x,y,'r*')
alone would most likely give you the desired result directly.
See the documentation of semilogx for more info.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Pole and Zero Locations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!