Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- k = 0;
- while k ~= 5
- a = [a quad(@(x)func1(x,n,'cos','func'),-3,3)];
- b = [b quad(@(x)func1(x,n,'sin','func'),-3,3)];
- if a(end) == 0 && b(end) == 0
- a(end) = [];
- b(end) = [];
- else
- k += 1;
- end
- n += 1;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement