MATLAB: Trouble with converting dec2bin dec2bin X= 0 2 4 6 Y = 1 3 5 7i want to convert X & Y to binaryplease help me Best Answer x=[1 3 5 7];outx=dec2bin(x) Related SolutionsMATLAB: How to fit a series of datapoints using 3 piecewise linear fit lines Use this FEXload data.mat % attached aboveydata(end) = []; % your xdata/ydata do not match in length ! slope0 = struct('p', 1, 'x', [min(xdata) max(xdata)], 'v', [0 0]);% Download BSFK function here% https://www.mathworks.com/matlabcentral/fileexchange/25872-free-knot-spline-approximationpp = BSFK(xdata,ydata, 2, 3, [], struct('KnotRemoval', 'none', 'pntcon', slope0)); % Checkfigurexi = linspace(min(xdata),max(xdata));yi = ppval(pp,xi)plot(xdata,ydata,'b',xi,yi,'r');for xb=pp.breaks xline(xb);endgrid on MATLAB: Find missing element between two matrix >> A = [1,2;3,6;3,5;1,4;4,6;2,7;1,6;6,5;2,3;6,7;3,4];>> B = [1,2;1,6;2,3;3,4;4,6];>> R = setdiff(A,B,'rows')R = 1 4 2 7 3 5 3 6 6 5 6 7To get the same order, use the 'stable' option or this:>> [~,X] = setdiff(A,B,'rows');>> X = sort(X);>> R = A(X,:)R = 3 6 3 5 1 4 2 7 6 5 6 7 Related QuestionDec2bin ast n=25Help with dec2bin conversionMemory overload with dec2binConvert vector to matrix
Best Answer