can I am shifting specific number in matrix ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mary Jon
am 3 Okt. 2013
Kommentiert: Mary Jon
am 4 Okt. 2013
can I am shifting specific number in matrix A with size (50*50) e.g A(14,14) can i shift this number horizontal from i=1:50, without shift on the all columns only A(14,14) step step,How?
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 3 Okt. 2013
A=[1 2 3;4 5 6;7 8 9]
% Shift A(2,1)
for k=1:size(A,2)-1
A(2,:)=circshift(A(2,:),[0 1])
end
5 Kommentare
Image Analyst
am 3 Okt. 2013
How do you plot a matrix? Do you mean display like an image with image(), or display in 2.5D with surf()? You accepted this so does it do what you want? At least as far as shifting goes, if not plotting/displaying?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Lighting, Transparency, and Shading 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!