My function only works in the online matlab and not on the one installed on my laptop
Show older comments
Hi everyone!
So I created a function on the matlab on my laptop and it worked, but I don't know what I did that it stopped working. I think I messed up in a way that I don't understand (new to matlab). I tried calling the function in the command section and also calling it out in a script. Didn't work.
Now this is where is gets weird (maybe for me atleast), when I use the online matlab, the function works perfectly. It works in the script and when I call it.
I would love any help from you guys
Sidenote: Yes I double checked the name of the file
3 Comments
Walter Roberson
on 19 Jan 2020
Edited: Walter Roberson
on 19 Jan 2020
What is the error message?
MATLAB Online might have toolboxes installed that you do not have on your computer. Or might be a newer version of MATLAB.
Ash matlab
on 19 Jan 2020
Steven Lord
on 19 Jan 2020
Answers (1)
Andrew Janke
on 31 Jan 2020
0 votes
Check to make sure your script is not depending on any files you have in your Matlab Drive. Your Matlab Drive is available by default in Matlab Online, but not in local installs. If this is the case, either pull those files out to local files, or set up the Matlab Drive Connector on your laptop (https://www.mathworks.com/products/matlab-drive.html#matlab-drive-connector).
Categories
Find more on Introduction to Installation and Licensing 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!