This doesn't do what you think it does.
x_axes=['Case-1','Case-2','Case-3','Case-4']
x_axes = 'Case-1Case-2Case-3Case-4'
Instead use a string array or a cell array each element of which is a char vector.
x_axes1=["Case-1","Case-2","Case-3","Case-4"]
x_axes1 =
"Case-1" "Case-2" "Case-3" "Case-4"
x_axes2={'Case-1','Case-2','Case-3','Case-4'}
x_axes2 =
{'Case-1'} {'Case-2'} {'Case-3'} {'Case-4'}
But plot is not defined for either string or cellstr variables. You could instead convert that text data to categorical and make a categorical plot.
C = categorical(x_axes1)
C =
Case-1 Case-2 Case-3 Case-4
0 Comments
Sign in to comment.