MATLAB: Delete Column from matrix

a null assignment can have only one non-colon indexcolumndelete

Hi, I'm tring to delete item from structure, the structure is: A.data A.smpf
When the program arrives in this instructions:
A.data(1,(c_x+1):end)=[]; c_x is 13 and A.data is 1×180000. I have this error: A null assignment can have only one non-colon index.
Some help? Thanks

Best Answer

Try
A.data((c_x+1):end)=[];