G
G
Gokilla2018-09-13 23:21:56
MATLAB
Gokilla, 2018-09-13 23:21:56

Error in matlab?

[A,B,t,r]=solve('e^(-i*k*a)+r^(i*k*a)=A*e^(-i*q*a)+B*e^(i*q*a)','A*e^(i*q*a)+B*e^(-i*q*a)=t*e^(-i*k*a)','i*k*(e^(-i*k*a)-r*e^(i*k*a))=i*q*(A*e^(-i*q*a)-B*e^(i*q*a))',
'i*q*(A*e^(-i*q*a)-B*e^(-i*q*a))=i*k*t*e^(i*k*a)')

Gives an error Error:Expression or statement is incorrect--possibly unbalanced (,{,or[.
Here is the original image www.picshare.ru/view/9003843

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Farwisdomer, 2018-09-14
@Farwisdomer

в чем проблема то

проблема в том, что нужно читать документацию
https://www.mathworks.com/help/symbolic/solve.html
а конкретно синтаксис нескольких уравнений и указания переменных.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question