Interpretation of some parameters depend on other parameters, and I want to store a meaningful name if possible. As an example:

type_of_function = 'linear' or 'sinusoid' if linear: a and b should be the parameters if sinusoid: amplitude, phase, frequency should be the parameters.

So how to organize my parameters? In a structure? Or cell array? And how?

## Best Answer