How to import a function from another package
Show older comments
Hello community,
I am trying to use a function which is in another package called model in one class. I am trying to import the package like this so I can use the function Parametros_Entrada.


However, I get an error all the time that says the following: Undefined function 'Parametros_Entrada' for input arguments of type 'double'. I tried to change the function to the project root and it works well, the problem is that the import does not take it well. I have tried ifferent things with the import but none comes out like:
- import model.*
- import model.Parametros_Entrada.m
- import @model.*
- import @model.Parametros_Entrada
And so on...Could you help me?
Thank you so much!
Gabriela
1 Comment
Gabriela Garaizabal Etxeberria
on 26 Apr 2021
Accepted Answer
More Answers (0)
Categories
Find more on Workspace Variables and MAT Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!