Designing a Matrix of Running Variables: Solving a Matlab Programming Problem

Click For Summary
SUMMARY

The discussion centers on designing a matrix of running variables in MATLAB that alternates between ones and zeros based on specified dimensions (m x n). Two specific patterns are requested: one with a consistent row pattern and another with a checkerboard arrangement. The conversation emphasizes the importance of providing attempted solutions to facilitate constructive feedback and problem-solving.

PREREQUISITES
  • Proficiency in MATLAB programming
  • Understanding of matrix manipulation in MATLAB
  • Familiarity with loops and conditional statements in MATLAB
  • Knowledge of array indexing in MATLAB
NEXT STEPS
  • Research MATLAB matrix creation functions
  • Learn about MATLAB's for-loops and while-loops for iterative processes
  • Explore conditional logic in MATLAB to create alternating patterns
  • Investigate MATLAB's array indexing techniques for advanced matrix manipulation
USEFUL FOR

Students, educators, and professionals in programming, particularly those working with MATLAB and interested in matrix operations and pattern generation.

RobertLeo
Messages
1
Reaction score
0
I need to design a matrix of running variables (m x n) that displays an array of ones and zeros in the following order;

1 0 1 0
1 0 1 0
1 0 1 0
1 0 1 0

and

1 0 1 0
0 1 0 1
1 0 1 0
0 1 0 1

So the values of m and n can be any value.

Any suggestions?

Thanks
 
Physics news on Phys.org
We're not going to do your homework for you. Please show us your attempted solutions, and explain why you're stuck.

- Warren
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
5
Views
3K
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
7K