gistlib
main.m% Define the function t = 0:0.01:10; % Define the range for t f = 2.0 + 2.5*sin(42.50*pi*t) - 4.0*cos(18.50*pi*t - 3*pi); % Plot the function plot(t, f); xlabel('t'); ylabel('f(t)'); title('Plot of f(t) = 2.0 + 2.5*sin(42.50*pi*t) - 4.0*cos(18.50*pi*t - 3*pi)'); grid on; 273 chars11 lines
% Define the function t = 0:0.01:10; % Define the range for t f = 2.0 + 2.5*sin(42.50*pi*t) - 4.0*cos(18.50*pi*t - 3*pi); % Plot the function plot(t, f); xlabel('t'); ylabel('f(t)'); title('Plot of f(t) = 2.0 + 2.5*sin(42.50*pi*t) - 4.0*cos(18.50*pi*t - 3*pi)'); grid on;
This code will plot the function f(t) = 2.0 + 2.5sin(42.50pit) - 4.0cos(18.50pit - 3*pi) in MATLAB.
gistlibby LogSnag