MATLAB to Python tutorial – Part 1 – arrays and plotting

A quick tutorial for those who are transitioning from MATLAB to Python using NumPy for arrays and matplotlib for plotting.


Justin Lane says:

Nice! Thanks for this, I’ll have to watch the others!
I’ve been looking to move a lot of code from matlab to python and looks like I finally found the IDE for it. Don’t know why I never came across this before.

Christopher Harris says:

Finally a clear example, thank you!

Juan Pablo Aguilar says:

Finally !!! Someone that actually proved that Python is as easy as Matlab.
Thank you very much !!!!

VANI SHREE V 12MSE0084 says:

thank you sir for this wonderful video, it helped me a lot. i m struggling to convert a python code in to matlab. can you pls help me to do this sir, here is my coding
import cv2
import numpy as np

image1 = cv2.imread(‘tablet.jpg’);
image2 = cv2.imread(‘tablet1.jpg’);

difference = cv2.subtract(image1, image2);

result = not np any(difference) if difference is all zeros it will return False

if result == True
fprint(‘images are the same’);
cv2.imwrite(‘result.jpg’, difference)
fprint(‘images are different’);

please help me sir.

thanks with regards

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours