How do I fade colors into each other?
I'm trying to get red in the top right, purple in the top left, blue in the bottom right, and green in the bottom left. However,...
Identify integers in a matrix
Task: Write a function sumDiv5 which receives one input argument and returns how many elements of the input variable are divisib...
9년 초과 전 | 답변 수: 1 | 0
1
답변
질문
Function Output Not Displaying
function output = IsMagic(n)
A= zeros(n);
r=n;
c=n;
row_index = 1;
while row_index <= r
col_index=1;
...
9년 초과 전 | 답변 수: 1 | 0
1
답변
질문
How to Sum matrix diagonals
If I have the following matrix
a = [1 2 3; 4 5 6; 7 8 10
a =
1 2 3
4 5 6
7 8 10...
9년 초과 전 | 답변 수: 3 | 0
3
답변
질문
Replace all numbers within a matrix
I'm trying to change all the numbers in a matrix between 1: n^2
My code is:
function output = IsMagic(n)
A= zeros(n)...