introducing the function in Matlab
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am newbie , my english is very low , but i have problem with matlab .
Script:
function [a,b,c]=funtest01(x,y)
% to jest funkcja testowa
% a to jest druga linia pomocy dla funkcji funtest01
% to jest komentarz umieszczony w tej m-funkcji
a=x+y;
b=x-y;
c=x*y;
z=5;
Command :
[a,b,c]=funtest01(1,2)
then receives a message:
Undefined function 'funtest01' for input arguments of type 'double'.
What am I doing wrong?
0 comentarios
Respuestas (2)
Carlos
el 7 de Abr. de 2014
Editada: Carlos
el 7 de Abr. de 2014
Probably you have not stored the function in your working directory.Just change your working directory to the directory where your function is stored.
On top of the command line you can change the working directory using the button browse for folder. You can see the directory in which you are working where you read the legend "Current folder".
0 comentarios
Lukas
el 7 de Abr. de 2014
1 comentario
Carlos
el 7 de Abr. de 2014
Just change your working directory to the directory where your function is stored.
On top of the command line you can change the working directory using the button browse for folder. You can see the directory in which you are working where you read the legend "Current folder".
Ver también
Categorías
Más información sobre File Operations 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!