how to upload toolbox in matlab my matlab version R2020a
2 ビュー (過去 30 日間)
古いコメントを表示
i want to upload the code in matlab community in communication field the code is not write in function form how can i do it
0 件のコメント
回答 (1 件)
Dinesh Yadav
2020 年 6 月 2 日
編集済み: Dinesh Yadav
2020 年 6 月 2 日
You have to write the code in a way function is written. Think of what are the possible inputs you want the user can give, then process those inputs and correspondingly what output your function should return. Example would be I want to calculate sum of 2 numbers, therefore i want 2 inputs and there will be one output and corresponding logic will be inside the function.
function outputOne = functionName(inputOne,inputTwo) %function signature having 2 inputs one output
outputOne = inputOne + inputTwo; %logic
end
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!