Skip to content
Advertisement

Python scipy.io write a mat file of n by 1

I need to save a .mat file from python. The mat file should be a cell array of n by 1. The code below does what I need except the output mat file is 1 by n.

JavaScript

How do I generate the desired n by 1 file?

Advertisement

Answer

Just do a list of lists.

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement