Community Profile

photo

Natalie


Last seen: 4 maanden ago Active since 2023

Statistics

  • Thankful Level 2

View badges

Content Feed

View by

Question


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

ongeveer een jaar ago | 2 answers | 0

2

answers

Question


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

ongeveer een jaar ago | 1 answer | 0

1

answer

Question


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

ongeveer een jaar ago | 4 answers | 0

4

answers