Ask Question
28 October, 13:41

function multiplicationTable = CreateTable (baseValue) % Multiples of baseValue used to populate multiplicationTable multiplicationTable = zeros (1, 6); % Preallocate multiplicationTable with 6 elements % Write a for loop to populate multiplicationTable with the % multiples of baseValue from 0 to 5 end

+1
Answers (1)
  1. 28 October, 14:15
    0
    function multiplicationTable = CreateTable (baseValue)

    %Multiples of baseValue used to populate multiplicationTable

    multiplicationTable = zeros (1, 6); %Preallocate multiplicationTable with 6 elements.

    %Write a for loop to populate multiplicationTable with the multiples of

    %baseValue from 0 to 5.

    for i = 0 : 5

    multiplicationTable (i+1) = i * baseValue;

    end
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “function multiplicationTable = CreateTable (baseValue) % Multiples of baseValue used to populate multiplicationTable multiplicationTable = ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers