Community Profile

photo

Natalie


Last seen: 5 Monate vor Aktiv seit 2023

Followers: 0   Following: 0

Statistiken

  • Thankful Level 2

Abzeichen anzeigen

Feeds

Anzeigen nach

Frage


Using the find function to check if the numbers in an array are divisible by a given number
x = 0:1:10 f = x.^2-x-1 M = find( ~mod(f,2) & ~mod(f,3)) I can use the ~mod(f,2) function to find if the numb...

mehr als ein Jahr vor | 2 Antworten | 0

2

Antworten

Frage


Unrecognized function or variable 'e'
a = [1 2 3; 4 5 6; 7 8 9] b = [7 5 6] c = [19 23; 31 29; 17 13] d = [e(1:2,:); f; e(3,:)]; % matrix f is inserted between ...

mehr als ein Jahr vor | 1 Antwort | 0

1

Antwort

Frage


My function won't accept the vector
x = 0:1:10; f(x) = x.^2-x-1; I keep getting an error message saying Array indices must be positive integers or logical values....

mehr als ein Jahr vor | 4 Antworten | 0

4

Antworten