MATLAB Answers

How can I change penwidth in 'DrawLine' in Psychtoolbox?

9 ビュー (過去 30 日間)
HONGJI KIM
HONGJI KIM 2017 年 9 月 1 日
回答済み: Olivia Krieger 2018 年 11 月 21 日
%%This is what the tutorial says:
Screen('DrawLine', windowPtr [,color], fromH, fromV, toH, toV [,penWidth]);
%%so I did like:
[wPtr, rect] = Screen('OpenWindow', 0)
Screen('DrawLine', wPtr, [180, 40, 80], 1000, 800, 1600, 1200, [10]);
Screen('Flip', wPtr);
%%I also tried:
[wPtr, rect] = Screen('OpenWindow', 0)
Screen('DrawLine', wPtr, [180, 40, 80], 1000, 800, 1600, 1200, 10);
Screen('Flip', wPtr);
but neither of them can change the penwidth of line.. plz help me
  1 件のコメント
Walter Roberson
Walter Roberson 2017 年 9 月 1 日
This sounds more like a Psychtoolbox problem than a MATLAB problem.

サインインしてコメントする。

回答 (2 件)


Olivia Krieger
Olivia Krieger 2018 年 11 月 21 日
Use widths 7 and below.

Community Treasure Hunt

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

Start Hunting!

Translated by