Lambda Function Using For Loop In Matlab With Raspberry