Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(In matlab) write a function which outputs the base 3 logarithm of the input num

ID: 3786195 • Letter: #

Question

(In matlab) write a function which outputs the base 3 logarithm of the input number. if the number is less than or equal to zero, the function is to output a message saying th (In matlab) write a function which outputs the base 3 logarithm of the input number. if the number is less than or equal to zero, the function is to output a message saying th (In matlab) write a function which outputs the base 3 logarithm of the input number. if the number is less than or equal to zero, the function is to output a message saying th

Explanation / Answer

The following code will give you required functionality:

function y = logarithm(x)

if x>0

y = log10(x)/log10(3)

else

disp("negative value")

end

Hope it helps, do give your response.