Assuming you have a relationship between t
and p
, you can define your function in Matlab as follows:
148 chars6 lines
This defines a function t_of_p
that takes input p
and returns the corresponding t
value calculated using the relationship defined within the function. You can modify the relationship between t
and p
to suit your specific use case.
gistlibby LogSnag