Creating a simpsons rule matrix
Show older comments
I want to create a matrix that repeats the numbers 4, 2 for 500 values but has a 1 in the 1st and last spot in each row
for 99 rows
ex: 1 4 2 4 2 4 2 4 ... 4 1
1 4 2 4 2 4 2 4 ... 4 1
1 4 2 4 2 4 2 4 ... 4 1
1 4 2 4 2 4 2 4 ... 4 1
Accepted Answer
More Answers (0)
Categories
Find more on Linear Algebra in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!