How to import variables from my script to a FEATool.

6 visualizaciones (últimos 30 días)
Nina Huhle
Nina Huhle el 14 de Mayo de 2018
Respondida: Precise Simulation el 5 de Jul. de 2018
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

Respuestas (1)

Precise Simulation
Precise Simulation el 5 de Jul. de 2018
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).

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by