MATLAB: How to use ‘fplot’ with 2 variables which depend on a 3rd symbolic variable

fplotMATLABsymbolic

I would like to plot 'sinx' over 'cosx' both on them depend on another symbolic variable time (t).

Best Answer

You can achieve this by define 't' as symbolic variablePlease refer below code to achieve your task:
%% Symbolic solution
syms t
sinx=@(t)sin(t);
cosx=@(t)cos(t);
fplot(sinx,cosx);