Link to home
Create AccountLog in
Avatar of NewtonianB
NewtonianB

asked on

accessing m-files located in different paths

let's say i have
C:\scripts\first\myfile.m
C:\scripts\myfile2.m
C:\scripts\myfile3.m
C:\scripts\myfile4.m

myfile.m:
  [A,B] = myFile2(signal);

myfile2.m:
function myFile2(signal)
  [Aw,Bw] = myfile3(signal)


you get the idea...
C:\scripts\first\myfile.m starts the chain reaction and the scripts in C:\scripts then call each other

How would you set this up in C:\scripts\first\myfile.m ? (with relative paths)


ASKER CERTIFIED SOLUTION
Avatar of ZeroBugMilkinson
ZeroBugMilkinson
Flag of South Africa image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of NewtonianB
NewtonianB

ASKER

Thanks!