How do I convert decimals to exponents in a matrix?
I am trying to generate a matrix with exponents (ie. (8)^5), but the numbers appear as decimals instead. How do I fix this?
This is the code I used:
A=[1 (2)^1 (2)^2 (2)^3 (2)^4 (2)^5 0.20;1 (5)^1 (5)^2 (5)^3 (5)^4 (5)^5 0.29;1 (8)^1 (8)^2 (8)^3 (8)^4 (8)^5 0.44;1 (11)^1 (11)^2 (11)^3 (11)^4 (11)^5 0.50;1 (14)^1 (14)^2 (14)^3 (14)^4 (14)^5 0.66;1 (20)^1 (20)^2 (20)^3 (20)^4 (20)^5 0.56]
B=rref(A)I am trying to generate a matrix with exponents (ie. (8)^5), but the numbers appear as decimals instead. How do I fix this?
This is the code I used:
A=[1 (2)^1 (2)^2 (2)^3 (2)^4 (2)^5 0.20;1 (5)^1 (5)^2 (5)^3 (5)^4 (5)^5 0.29;1 (8)^1 (8)^2 (8)^3 (8)^4 (8)^5 0.44;1 (11)^1 (11)^2 (11)^3 (11)^4 (11)^5 0.50;1 (14)^1 (14)^2 (14)^3 (14)^4 (14)^5 0.66;1 (20)^1 (20)^2 (20)^3 (20)^4 (20)^5 0.56]
B=rref(A) I am trying to generate a matrix with exponents (ie. (8)^5), but the numbers appear as decimals instead. How do I fix this?
This is the code I used:
A=[1 (2)^1 (2)^2 (2)^3 (2)^4 (2)^5 0.20;1 (5)^1 (5)^2 (5)^3 (5)^4 (5)^5 0.29;1 (8)^1 (8)^2 (8)^3 (8)^4 (8)^5 0.44;1 (11)^1 (11)^2 (11)^3 (11)^4 (11)^5 0.50;1 (14)^1 (14)^2 (14)^3 (14)^4 (14)^5 0.66;1 (20)^1 (20)^2 (20)^3 (20)^4 (20)^5 0.56]
B=rref(A) matrix MATLAB Answers — New Questions