我试图在x = 0时从图形中心出来3条线,然后到达黑点标记的坐标。
我使用
获得了黑点scatter(X,Y);
但是找不到从原点到这些点发出线条的方法。
答案 0 :(得分:0)
如评论中所述,这很容易做到:
ROW_NUMBER
这通过将矢量N = numel(X);
Xlines = zeros(2*N,1);
Ylines = zeros(2*N,1);
Xlines(1:2:end) = X(:);
Ylines(1:2:end) = Y(:);
plot(Xlines, Ylines, '-');
和Xlines
与点Ylines
交织来构造矢量(0,0)
和$ol = New-Object -comObject Outlook.Application
$ns = $ol.GetNameSpace("MAPI")
# call the save method yo dave the email in the drafts folder
$mail = $ol.CreateItem(0)
$null = $Mail.Recipients.Add("xxxx@serverdomain.es")
$Mail.Subject = "PS1 Script TestMail"
$Mail.Body = " Test Mail "
$date = Get-Date
$date = $date.AddMinutes(2)
$Mail.DeferredDeliveryTime = $date #"2/11/2013 10:50:00 AM"
$Mail.save()
# get it back from drafts and update the body
$drafts = $ns.GetDefaultFolder($olFolderDrafts)
$draft = $drafts.Items | where {$_.subject -eq 'PS1 Script TestMail'}
$draft.body += "`n foo bar"
$draft.save()
$inspector = $draft.GetInspector
$inspector.Display()
# send the message
$draft.Send()
,这看起来与您想要的完全相同。