photo

Payton Brown


Last seen: 2 years ago Active since 2020

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


Defining a 3d XYZ vector aligned with Z axis and then rotating it along the XY plane by pi/4
x= zeros(1,101); y= zeros(1,101); z= 0:0.01:1; figure(1) plot3(x,y,z,'LineWidth',2, 'Color',[1 0 0]) grid on axis square...

2 years ago | 1 answer | 0

1

answer

Question


Is vectorizing this even possible?
vec3(1) = 1; i = 1; while i<5 i = i+1; vec3(i) = (vec3(i-1)+2)^2; end vec3

4 years ago | 2 answers | 0

2

answers