How to import variables from my script to a FEATool.
2 次查看(过去 30 天)
显示 更早的评论
I want to import variables from my script to a FEATool. I saved them in my workspace but when I import for example 'Temp_roadway' and put it as a boundary, it won't read the value of it.
Issue:
Error using evalexpr0 (line 315) Can not evaluate expression 'temp_roadway'.
Thank you
0 个评论
回答(1 个)
Precise Simulation
2018-7-5
It is not quite clear what exactly you are trying to do. If you have an external Matlab m-script or function, you can use it as boundary coefficient like it is. For example, if you have a function saved as named Temp_roadway.m which takes x and y coordinates as arguments you can just use it as "Temp_roadway(x,y)" in equation and boundary coefficient expressions. This example illustrates how to implement a mixed Robin FEM boundary condition with a coefficient expression.
If it is just a constant or variable you and want to import it into the Gui, then you can use the "Import" > "Variables From Main Workspace..." option from the "File" menu (FEATool has its own internal memory workspace so you need to import variables from the main Matlab workspace if you want to use them there).
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Whos 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!