-
1 Comment
Sankirna D. Joge
on 13 Aug 2020
function [q,r] = swapInputs(a,b)
[q1,r1] = cart2pol(a,b);
q1=(pi/2)-q1;
[q,r]=pol2cart(q1,r1);
end
if u run above code in matlab it successfully swaps any input argument. why it is not accepting solution ?
Suggested Problems
-
2117 Solvers
-
Project Euler: Problem 6, Natural numbers, squares and sums.
2354 Solvers
-
701 Solvers
-
Implement simple rotation cypher
1087 Solvers
-
587 Solvers
More from this Author5
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!