Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so:
x = [1 2 3 4]
Commas are optional, s...
Answered Specifying a range in a double
I think, that you want to do this:
MAX = 110;
MIN = 90;
id = find( (MIN <= Values) & (Values <= MAX) )
Values = mean(Values(...
4 years ago | 0
| accepted
Answered Help with a loop
S = [12 4 6 4;16 12 2 3;0 4 10 12;4 12 21 3];
CLN = 50*ones(4);
for i = 1:4
S = S - 2;
CNL_new = CLN;
% If S is bel...
4 years ago | 0
| accepted
Answered Transforming from Maclaurin to Taylor
If i understand correctly, your code looks something like this:
syms x
f(x) = x^3 + x^2 + x +1
f(x-1)
f(x-2)
And you want...
Apply diff to function handle
Hello!
I have a string input that i transform into a symbolic equation. I need to translate "D(___)" into differentiation, but ...