My function only works in the online matlab and not on the one installed on my laptop

11 ビュー (過去 30 日間)
Ash matlab
Ash matlab 2020 年 1 月 19 日
回答済み: Andrew Janke 2020 年 1 月 31 日
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 件のコメント
Ash matlab
Ash matlab 2020 年 1 月 19 日
Thank you for responding Walter
Well I defined a function called 'profile'
And matlab says this 'Unrecognized function or variable 'profile'' when i run it. It worked a couple of days ago but sometimes i get these messages that say that you can't run the program because of a file change? It either says change it or add it to the loop. I think I added it....
I have to submit the file to my teacher, so if it works online that means that it'll work for her too right?
I also want to tackle the problem though....
Steven Lord
Steven Lord 2020 年 1 月 19 日
The name profile already has a meaning in MATLAB. If possible choose a different name.

サインインしてコメントする。

回答 (1 件)

Andrew Janke
Andrew Janke 2020 年 1 月 31 日
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).

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by