It takes column 2 of the matrix xx and gets the max value in that column 2 and sticks it in the variable called n (yeah - bad name, I know).
max number of matrix to python
3 次查看(过去 30 天)
显示 更早的评论
I'm new to matlab and need to convert this line to python code
n=max(xx(:,2));
what i got that it's calculated the max number from a matrix and store this value in varable n
but i couldn't got what does that mean xx(:,2)?
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call Python from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!