MATLAB: How can i plot whit the command plot a complex number with an imaginary part which is null? Can you make me an example of the code with this number #plot #complex numberMATLAB z=1+0*i; Best Answer z=complex(1,0);plot(z,'r+'); Related SolutionsMATLAB: Plotting a complex function with function in real and imag part figure,plot(w,real(f)) hold on,plot(w,imag(f))orfigure,plot(w,[real(x);imag(x)]) MATLAB: Function repeat number combvec() from the Deep learning toolbox is most easiest solutiona = [1 2 3]b = [1 2 3]C = combvec(a, b).'; % if the order of column is important: C = fliplr(combvec(a, b).');The other solution is to use ndgrid()a = [1 2 3]b = [1 2 3][A, B] = ndgrid(a, b);C = [B(:) A(:)] Related QuestionGenerate random’s numberPlotting complex zero causes plot one zeroLMI with imaginary number
Best Answer