Community Profile

photo

Jonathan Trencheny


Actif depuis 2016

Followers: 0   Following: 0

Statistiques

  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


what am I doing wrong here?
function a = problem4c (m) m=4; a = [1:m; 2:m; 3:m; 4:m; 5:m]; x = mean(a); avg = mean(x); I keep getting...

environ 8 ans il y a | 2 réponses | 0

2

réponses

Question


How would I create a function using a positive integer 'q' in a 5 by q matrix, where row 'i' consists of i, 2i, 3i...qi.
This is a homework question I have been stuck on.

environ 8 ans il y a | 1 réponse | 0

1

réponse

Question


This is a homework question I have been stuck on.
Write a MatLab function called problem5 that inputs, in this order, a row vector vec, and a positive integer n, and outputs a t...

environ 8 ans il y a | 2 réponses | 0

2

réponses

Question


How would I create a function using a positive integer 'q' in a 5 by q matrix, where row 'i' consists of i, 2i, 3i...qi.
Also, how would a second output, containing the average of every element in the first output be written?

environ 8 ans il y a | 1 réponse | 0

0

réponse

Question


how would I create a 6x6 matrix with evenly distributed values from -10 to 10?
I know a long way, by typing out the exact values, I was just curious as to if there was a more efficient way.

environ 8 ans il y a | 2 réponses | 0

2

réponses