How to call a matlab function?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have to verify that my matrix code is correct by checking that for a 5x5 matrix, SS=I_5. How do I do that? This is the code I have for returning a matrix S of any size.
function S = S_Matrix(m)
S=zeros(m)
for ii= lim ;
for jj= lim ;
S(ii,jj)= sqrt(2/m)*sin*((pi/m)*(ii-(1/2))*(jj-(1/2)));
end
end
end
1 Kommentar
Antworten (1)
Chaitanya Mallela
am 27 Nov. 2020
The above code cannot be executed as lim is not defined. Try initializing lim either as a variable or function with integer return value.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!