Frage


How to Create function to invert Image colors
I need to write a function that inverts the colors (negative effect) of an image. I know that I need subtract each RGB color val...

etwa 9 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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,...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to randomly add variance in a graph plot
I'm graphing y=x, but I want to add a second plot of black stars where y is randomly + or - 0.25 I know the code to plot is ...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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; ...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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...

etwa 9 Jahre vor | 3 Antworten | 0

3

Antworten

Frage


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)...

etwa 9 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


How to test for integers and delete integers that do not perform to the test
My assignment: Write a function sumDiv5 which receives one input argument and returns how many elements of the input variable ar...

etwa 9 Jahre vor | 2 Antworten | 0

2

Antworten