output representation
11 views (last 30 days)
Show older comments
in the command window, we got 2 outputs as: w= 0 0 1 0 1 1 1 0 0 0 1 1
and
y= 2.04 0.19 5.26 4.80
i need these two outputs side by side in the command window in two columns that is, one column containg 'w' values and another column containing 'y' values side by side so that i can compare them.
please help!
0 Comments
Accepted Answer
Paulo Silva
on 8 Jun 2011
w= [0 0 1 0 1 1 1 0 0 0 1 1]
y= [2.04 0.19 5.26 4.80]
z=[w' [y nan(1,numel(w)-numel(y))]']
%if w and y got the same number of elements z=[w' y']
%the nan I used was just to fill the missing elements on the vector
0 Comments
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!