필터 지우기
필터 지우기

can I am shifting specific number in matrix ?

조회 수: 2 (최근 30일)
Mary Jon
Mary Jon 2013년 10월 3일
댓글: Mary Jon 2013년 10월 4일
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?

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 10월 3일
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
Image Analyst
Image Analyst 2013년 10월 3일
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?
Mary Jon
Mary Jon 2013년 10월 4일
as mesh ,as surface,Is that mean Iam must do plots by same number of the shifting ?isnt it.?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by