MATLAB: (0.341/(0.2+1j*k)*(exp^1j*k*t); how to write a plot plot (0.341/(0.2+1j*k)*(exp^1j*k*t); Best Answer F = @(k, t) 0.341./(0.2+1j*k).*(exp(1j*k.*t)); subplot(1,2,1) fsurf(@(x,y) real(F(x,y)), [-5 5 -6 6]) title('real part') subplot(1,2,2) fsurf(@(x,y) imag(F(x,y)), [-5 5 -6 6]) title('imaginary part') Related SolutionsMATLAB: How p(:,j) differs from p(j,:) p=[1 2;3 4;5 6]check thisp(:,2)p(3,:)p(:,2) means all lines, column number 2, p(3,:) means all columns, line number 3 MATLAB: Generating A(i,j) = [i; j] You want each element of your matrix to be a two element vector?That is not a matrix, but it does sound like a cell array.C = num2cell(cumsum(ones(5),2));C = cellfun(@(x,y) [x;y],C,C.','Un',0) Related QuestionLoop if for one j(1/2) – (3-j4)/(5-j8)Value of J in DFTUsing j for imaginary numbers
Best Answer