Please see the MATLAB code and equivalent Numpy code below. Question: How can I get the D variable same in Numpy as MATLAB's?

Please see the MATLAB code and equivalent Numpy code below. Question: How can I get the D variable same in Numpy as MATLAB's?

**MATLAB Code**

A = [1 2 3; 4 5 6; 7 8 9]C = [100 1; 10 0.1; 1, 0.01]

C = reshape(C, 1,3,2)

D = bsxfun(@times, A, C)

D(:,:,1) =

`100 20 3 400 50 6 700 80 9`

D(:,:,2) =

`1.0000 0.2000 0.0300 4.0000 0.5000 0.0600 7.0000 0.8000 0.0900`

**Numpy Code**

A = np.array([[1,2,3],[4,5,6],[7,8,9]])C = np.array([[[100, 1], [10, 0.1], [1, 0.01]]]) # C.shape is (1, 3, 2)

D = A * C.T

D

`array([[[100. , 200. , 300. ], [ 40. , 50. , 60. ], [ 7. , 8. , 9. ]], [[ 1. , 2. , 3. ], [ 0.4 , 0.5 , 0.6 ], [ 0.07, 0.08, 0.09]]])`

In the programming world, Data types play an important role. Each Variable is stored in different data types and responsible for various functions. Python had two different objects, and They are mutable and immutable objects.

I am having difficulty loading in 'str' variables 'Et' (Endtime) and 'St' (Starttime) from a MATLAB .mat file into Python.

Numpy is a python library used for computing scientific/mathematical data.

here is the code in python

This free 12-hour Python Data Science course will take you from knowing nothing about Python to being able to analyze data. You'll learn basic Python, along with powerful tools like Pandas, NumPy, and Matplotlib. This is a hands-on course and you will practice everything you learn step-by-step. This course includes a full codebase for your reference [https://github.com/datapublishings/Course-python-data-science]. It kicks off with a one-hour introduction to basic programming concepts, proble