plot f = 2.0 + 2.5*sin(42.50*pi*t) - 4.0*cos(18.50*pi*t - 3*pi); in matlab

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 chars
11 lines

This code will plot the function f(t) = 2.0 + 2.5sin(42.50pit) - 4.0cos(18.50pit - 3*pi) in MATLAB.

related categories

gistlibby LogSnag