Without having to write separate functions for adding and subtracting.
I am a beginner trying to learn MATLAB and I want to make custom function blocks that can be connected in series or parallel but the arithmetics performed on them are not necessarily the same as that done in electrical circuits.
1