find jordan canonical form of a matrix

15 views (last 30 days)
Ajay Singh
Ajay Singh on 18 Nov 2019
Edited: KALYAN ACHARJYA on 18 Nov 2019
if true
% code
end
N = 33;
W = zeros(N,N);
for i=1:N
for j = 1:N
if(i ~= j)
if(round(rand - 0.1))
W(i,j) = round(5*rand);
end
end
end
end
[V J] = jordan(W);

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 18 Nov 2019
Edited: KALYAN ACHARJYA on 18 Nov 2019
J=jordan(A); % where A is Given Matrix
Or In your code J represents the same

Categories

Find more on Language Fundamentals 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!