回覆列表
  • 1 # 傳閣庫

    解決方法1 利用scatter函式畫散點圖2 plot(x,y,"r.")例子:假如你有3個點:No X Y1 1 42 2 53 3 6那麼程式碼如下x = [1 2 3]y = [4 5 6]plot(x,y,"r.")figurescatter(x,y)註解:在plot(x,y,"r.") 中的 r是指顏色為紅色,. 是指點的形狀為的點狀,也可以改成其它形狀的,具體可以用matlab命令help plot檢視b blue . point - solidg green o circle : dottedr red x x-mark -. dashdot c cyan + plus -- dashed m magenta * star (none) no liney yellow s squarek black d diamondw white v triangle (down) ^ triangle (up) < triangle (left) > triangle (right) p pentagram h hexagram

  • 中秋節和大豐收的關聯?
  • 怎麼樣可以加速頭髮的生長啊?