How to import variables from my script to a FEATool.

7 ビュー (過去 30 日間)
Nina Huhle
Nina Huhle 2018 年 5 月 14 日
回答済み: Precise Simulation 2018 年 7 月 5 日
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

回答 (1 件)

Precise Simulation
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).

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by