フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Simplfying Line Plot Command

2 ビュー (過去 30 日間)
Michael
Michael 2014 年 3 月 11 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Is there any way to accomplish this:
plot(largebinsmesh, guessCurve,'k-','linewidth',3.0);
plot(largebinsmesh, guessCurve,'w-.','linewidth',1.2);
in one line with plot?

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 3 月 11 日
No. The closest you could get would be,
h = plot(largebinsmesh, guessCurve, 'k-', largebinsmesh, guessCurve,'w-.','linewidth',1.2);
set(h(1), 'linewidth', 3.0);
This presumes that guessCurve is a vector; if it is a 2D array then it would be h(1:size(largebinmesh,2)) that would have to be set()
plot() accepts multiple string specifiers for the plotspec but it does not accept multiple parameter value pairs for the same parameter name.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by