필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Identify the corner and create a step size slant

조회 수: 1 (최근 30일)
Kaelyn
Kaelyn 2013년 10월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
I want to display 6 on a slant, as shown in the highlighted area. My code is below. I want to start 6 at A(i,n-.4*n) then have a s "step" for the next row then the next and so on unit the row = (.6*n)-1. The step size has the variable in because my code has to change with different inputs of n.
n=10
for i=1:n-.6*n
for j=(.6*n)-1
A((.6*n)-1,n)= 4;
A(i,n-.4*n)=6;
end
end
  댓글 수: 1
Walter Roberson
Walter Roberson 2013년 10월 18일
You did not ask a question.

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by