Extract data from a 'scicos' signal structure. x will be the field B.values t will be the field B.time
[x[,t]]=sig2data(B)
-->a(:,:,4)=([7 8 9;10 11 12]); -->b=data2sig(a,0.1) b = values: [2x3x4 hypermat] time: [4x1 constant] -->b.time ans = 0. 0.1. 0.2. 0.3. -->[x,t]=sig2data(b) t = 0. 0.1 0.2 0.3 x = (:,:,1) 0. 0. 0. 0. 0. 0. (:,:,2) 0. 0. 0. 0. 0. 0. (:,:,3) 0. 0. 0. 0. 0. 0. (:,:,4) 7. 8. 9. 10. 11. 12.