Matlab to Python - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Matlab to Python (/thread-30756.html) |
Matlab to Python - Sateesh - Nov-04-2020 Dear Python Users, I am new to python. I am using Jupyter notebook for simulations. Could you please help me to read out the output table generated in the simulation I am able to do it in Matlab but I want to do it in Jupyter notebook. I am attaching the matlab code and output table for reference. clear; A=xlsread('table.xlsx'); for row=2:size(A,1) s=1; for i=6:202 if A(row,i)*A(row,i+1)<0 x1(row,s)=i; s=s+1; end if s>2 dia(row)=x1(row,2)-x1(row,1); break; end end t(row)=A(row,1); end plot(t, dia)And how to save these values in the same output table? Best regards Sateesh |