% Produce the same result but without using a for-loop. % Increment dx = 35/300; % Independent variable x = -5:dx:30; % x = linspace(-5,30,300) for n = 1:length(x) if x(n) >= 9 y(n) = 15*sqrt(4*x(n))...


% Produce the same result but without using a for-loop.


% Increment


dx = 35/300;


% Independent variable


x = -5:dx:30; % x = linspace(-5,30,300)


for n = 1:length(x)


if x(n) >= 9


y(n) = 15*sqrt(4*x(n)) + 10;


elseif (x(n) >= 0) && (x(n) <=>


y(n) = 10*x(n) + 10;


else


y(n) = 10;


end


end


plot(x,y), xlabel('x'), ylabel('y'), grid


on



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here