MATLAB: Trying to go from 1 matrix to a structure with a condition in the next column

engineeringfor loopgreater thanif elseless thanmathmechanicalengineering

Best Answer

I want to make a struct with the first column stating the values in the 1x996 matrix and the second column stating if the number from the first column is critical or not critical.
I can't tell what you mean by "struct". It sounds like what you really want is a 2x966 matrix,
result=[A(:), A(:)<1.5];