The problem statement clearly states to use mldivide (\)
How can the leading solution be cos(theta)+sin(theta)*[-1;1]
My code is working perfectly on my desktop Matlab version, but here it's not accepting and displaying as incorrect..anyone help me out!
The syms function is in a toolbox—Cody does not currently support any toolbox functions.
It is tricky problem.
A=[cos(theta) sin(theta); -sin(theta) cos(theta)]; % coefficients of X1 and X2
b=[1;1] % It is a column vector
What is this? I don't even understand the question?
The answer is:
A=[cos(theta) sin(theta); -sin(theta) cos(theta)]; % coefficients of X1 and X2
b=[1;1] % It is a column vector
how tf do u do this
whats wrong with this problem, it runs perfectly on my matlab.
Developers guys, you should fix this problem
function x = solve_lin(theta)
A=[cos(theta) sin(theta); -sin(theta) cos(theta)];
b=[1; 1];
x=linsolve(A,b);
end
Good job!!!
lol
Remove all the words that end with "ain"
1294 Solvers
Find the two most distant points
1629 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
513 Solvers
Create an index-powered vector
353 Solvers
Height of a right-angled triangle
449 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!