MATLAB Answers


Identify the corner and create a step size slant

Asked by Kaelyn
on 18 Oct 2013
Latest activity Commented on by Walter Roberson
on 18 Oct 2013

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.

  for i=1:n-.6*n
      for j=(.6*n)-1
        A((.6*n)-1,n)= 4;

  1 Comment

You did not ask a question.



No products are associated with this question.

0 Answers

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!