![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/27773126_1664790163854_DEF.jpg)
Natalie
Followers: 0 Following: 0
Feeds
提问
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...
1 year 前 | 2 个回答 | 0
2
个回答提问
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 ...
1 year 前 | 1 个回答 | 0
1
个回答提问
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....
1 year 前 | 4 个回答 | 0