Answered step by step
Verified Expert Solution
Question
1 Approved Answer
clear %P2 d1=[2;2]*ones(1,100)+2.*randn(2,100); d2=[3;3]*ones(1,100)+randn([2,100]); for i=1:100, if d1(1,i)>0 && d1(2,i)>0 d1(1,i)=-d1(1,i); d1(2,i)=-d1(2,i); end end hw4_2_1=d1; hw4_2_2=d2; save hw4.mat hw4_2_1 hw4_2_2 x1=hw4_2_1; x2=hw4_2_2; xx1=[x1;(x1(1,:)).*x1(2,:)]; xx2=[x2;(x2(1,:)).*x2(2,:)]; plot3(xx1(1,:),xx1(2,:),xx1(3,:),'o',xx2(1,:),xx2(2,:,:),xx2(3,:),'*')
clear %P2 d1=[2;2]*ones(1,100)+2.*randn(2,100); d2=[3;3]*ones(1,100)+randn([2,100]); for i=1:100, if d1(1,i)>0 && d1(2,i)>0 d1(1,i)=-d1(1,i); d1(2,i)=-d1(2,i); end end hw4_2_1=d1; hw4_2_2=d2; save hw4.mat hw4_2_1 hw4_2_2 x1=hw4_2_1; x2=hw4_2_2; xx1=[x1;(x1(1,:)).*x1(2,:)]; xx2=[x2;(x2(1,:)).*x2(2,:)]; plot3(xx1(1,:),xx1(2,:),xx1(3,:),'o',xx2(1,:),xx2(2,:,:),xx2(3,:),'*') MATLAB 5.0 MAT-file, Platform: PCWIN, Created on: Fri Apr 13 18:20:16 2007 ##IM####n###x-yT##9HB#$#(#@EC9#rY hVYE\\ue#T,P#p#@#:P8@#> ##l~;#F#Y#A(D{p###L#Qgv}e%IpO@ b #tL^3{#"3L 7 7OC6^Br##Vq>#`z#TG,kwST{ Hs@ `a m<\\2#4#sRu##4H###xe#aX#!;H z*o{BF>FK#(+=#G7IeA*X%o^#&l##(|f #,N.^##D{~3x=#O##UZ`#*c4}^R?#WDu;|h#7hx;: #|s@?v23'v#Z!0tW0#0WEvx4-gJk 6v?x@oCOrqmG}{#Z#{"<-SYj(#p#YWL>^v#;<,2#K#cq {V)^)F>2\\#9##YM##:O##Qo_E;#3####ETso## %3csL@#Oy ##n#~oB8Xz#, ~'@NRX^ ];Xl':#3#ft.y2j#:>D8(uyv#2#z#@<&o# reMtg6nX*FogH:t|*a6 #'#,iAb#l#|~#Kc#9nj##K# 89+Te#V_^c u:###KC###*sd##fi#CX}##Afs`##i3`g#N0U##[w= X~q#>a##],e#c>1#o##i >cB`#4p%x #/o_NC(I#J fHI1=txW\\ f^izi6#ieG`:;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started