So I have successfully written scripts for three different functions of 3 variables, Sum1(x,y,z) Sum2(x,y,z) and Sum3(x,y,z)
I have 2 other scripts for functions of just two of these variables: QuantumDimension(x,y) and Twist(x,y)
I'm trying to relate these functions as so:
function c = CJ(x,y,z)
c = (Twist(x,y)^(-2*z)/QuantumDimension(x,y))*(Sum1(x,y,z)+Sum2(x,y,z)-Sum3(x,y,z))
end
So Twist^(-2z) divided by the QuantumDimension, multipled by the sum of the three summations, (Sum1 + Sum2 + Sum3)
This is the output I get when I try to run the code:
Error in CJ (line 2)
c = (Twist(x,y)^(-2*z)/QuantumDimension(x,y))*(Sum1(x,y,z)+Sum2(x,y,z)-Sum3(x,y,z))
I do not see anything wrong with this line!! Insights appreciate, thanks for being patient.
5 Comments
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022818
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022818
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022851
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022851
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022860
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022860
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022863
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022863
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022881
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/599191-code-is-not-working-can-someone-help-me#comment_1022881
Sign in to comment.