PLEASE MATLAB CODE !!! DONT C++ OR C#
Posted: Tue Jun 07, 2022 1:37 pm
PLEASE MATLAB CODE !!!
DONT C++ OR C#
Write a function named create_mat that takes two inputs, which are the number of rows (r) and columns (e) of a rectangular matrix that it will creat returns a matrix (M) having the structure given in the example below. Example: number of rows: 6 number of columns: 28 Output: 0000060000060000060000060000 0000550000550000550000550000 0004440004440004440004440004 00333300333300333 300333 30033 0222220 222 2202 22 2202 22 2202 22 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 The code has already been provided to define a function named create_mat that accepts the input variables rand e Note that r and c are defined as inputs to the function. Do not overwrite values in these variables in your code. Be sure to assign a value to the function output variable (M). Inputs:
DONT C++ OR C#
Write a function named create_mat that takes two inputs, which are the number of rows (r) and columns (e) of a rectangular matrix that it will creat returns a matrix (M) having the structure given in the example below. Example: number of rows: 6 number of columns: 28 Output: 0000060000060000060000060000 0000550000550000550000550000 0004440004440004440004440004 00333300333300333 300333 30033 0222220 222 2202 22 2202 22 2202 22 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 The code has already been provided to define a function named create_mat that accepts the input variables rand e Note that r and c are defined as inputs to the function. Do not overwrite values in these variables in your code. Be sure to assign a value to the function output variable (M). Inputs: