79741068

Date: 2025-08-20 12:32:28
Score: 1.5
Natty:
Report link

Given that you already have an algorithm working, tested, and fast enough in python, I would use this to convert the data to a matlab .mat file. Then load this into matlab and continue to work in matlab from that point onwards.

python script:

from scipy.io import savemat
dat = unpack_s12p_to_f32(data)
savemat("matlab_matrix.mat", {"data": dat, "label": "data imported and converted to matlab using python"})

then in matlab:

load('matlab_matrix.mat')
plot(data)

enter image description here

Later to streamline the workflow, this could be done by a simple python script called from the command line when you get new data.

Is there a reason you want to import this directly to matlab with no interpretation step?

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Neil Butcher