q8-which graph represents the plot of the following function "s=" 4๐‘ ๐‘–๐‘› (7๐‘ก+5)+โˆš(6๐‘ก+2) ๐‘œ๐‘ฃ๐‘’๐‘Ÿ 0โ‰ค๐‘กโ‰ค5 in matlab

main.m
% Define the function
s = @(t) 4*sin(7*t + 5) + sqrt(6*t + 2);

% Create an array of t values from 0 to 5
t = 0:0.1:5;

% Calculate the corresponding s values
s_values = arrayfun(s, t);

% Plot the function
plot(t, s_values);
xlabel('t');
ylabel('s');
title('Plot of the function s(t)');
288 chars
15 lines

related categories

gistlibby LogSnag