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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by