MATLAB: Help in p code p code help good evening everybody my question is how can I add a help within a p code ? thanks in advance Best Answer The old Matlab way is to accompany the file my_function.p with a file my_function.m, which only contains the help-text. function [ output_args ] = my_function( input_args ) %my_function Summary of this function goes here % Detailed explanation goes here end Related SolutionsMATLAB: Create a help text that shows in command window. How to? You simply place comments at the top of the function. All comments that appear before the first non-comment or empty line are displayed when you type "help ..." MATLAB: A problem with a function Try this out:input_args = [-0.9133 0.3481];output_args = zeros(size(input_args));for k=1:length(input_args) if input_args(k)<0 output_args(k)=round(2^16+input_args(k)*2^15); else output_args(k)=round(input_args(k)*2^15); endend Related QuestionAtan2(0,0) is not undefined (NaN)How to run a p code matlabFunction [output]=F​unctionNam​e(input)How to add a hyperlink of a pdf file within SimulinkDefining inputs for subfunctions
Best Answer