フィルターのクリア

Can you create a function in Matlab for IOS?

10 ビュー (過去 30 日間)
LUCA GIROTTI
LUCA GIROTTI 2021 年 10 月 27 日
回答済み: Simar 2023 年 10 月 9 日
I just downloaded Matlab for IOS, since I have an iPad Pro it could be quite handy to have it. However I cannot find the option to create a function, it seems that I can only create a script. Can you guys help me out ? Thanks in advance !

回答 (1 件)

Simar
Simar 2023 年 10 月 9 日
Hi Luca Girotti,
I understand that you are facing difficulty in trying to create a function in MATLAB for IOS on iPad Pro. As of current updates, MATLAB Mobile for iOS does not directly support creating function files. However, one can create scripts and define a function within a script file.
Here is an example:
% This is a script file that contains a function
% Call the function
output = myFunction(5, 10);
% Display the output
disp(output)
% Define the function at the end of the script
function output = myFunction(a, b)
output = a + b;
end
In the above script, ’myFunction’ is a local function that adds two numbers. One can call this function elsewhere in the same script as well.
For creating standalone function files, it is recommended to do on a desktop version of MATLAB and then run them from MATLAB Mobile.
Please refer to the documentation link to know more about MATLAB Mobile:
Hope it helps!
Best Regards,
Simar

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by