symbolic equation to numerical answer
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi,
I have created a symbolic equation on a previous script and saved it as a .mat file
I hvae then opened it in a new script and wish asign variables to gain a numerical value
can anyone help me with this?
solv = open('solvx.mat')
x=solv.solx;
cx = 10;
cy = 10;
r = 2;
b = 30;
댓글 수: 0
채택된 답변
Bjorn Gustavsson
2019년 7월 4일
Take a look at matlabFunction, it should be the function to use to convert a symbolic expression to a numerical functin.
HTH
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!