MATLAB: How to make all vectors to equal size for a cell array.

cell arraysdatavectors

hi, i have a cell array of z{k}, it has totally 60 cells. which are diffident size in columns. so while i am trying to plot all arrays data in a single plot,[plot(z{1}) it works for one cell.] it says all vectors must have same size.
??? Error using ==> plot
Vectors must be the same lengths.
so, i want to make equal size of vectors by placing zeros. so any one can please help me.

Best Answer

It might be easier using a for-loop, with hold on;
figure;hold on;
for k=1:length(z)