(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 thExplanation / 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.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.