I want to show the values of mu1 in the form of diagonal matrix but by using the command disp(diag(mu1))i am unable to get the desired diagonal matrix, kindly assist.
clc; clear allformat ratsyms NN=3;i=[0:N];for t = i/N mu1 = 1/2 *exp((1/2) *t); disp(diag(mu1))end
my desired answer is:
1/2 0 0 0 0 469/794 0 0 0 0 986/1413 0 0 0 0 1225/1486
Best Answer