Solved


Add two numbers
Given a and b, return the sum a+b in c.

4 years ago

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

4 years ago

Solved


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

4 years ago

Answered
STORAGE OF SELECTIVE VALUES OF SOME CELLS INTO A SINGLE MATRIX FROM TWO DIFFERENT MATRICES. Whats wrong with this?
Okay, you have made 2 errors: A(:,1) returns: [1;6;1;8;5]. I think you want it to return [1, 2, 3, 4, 5], which is A(1,:). "A...

4 years ago | 0

| accepted

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

4 years ago | 0

| accepted

Answered
differential equation solution for control system
The transfer function can be inserted into matlab the following way: % make transferfunction b = 1; a = [1 5 6 10]; G = tf(b...

4 years ago | 1

Question


Define alternative latex-output for symbolic
Hello I want to change the output that comes from the latex-command syms g(f) dx(t) d eq = dx(t) == g(t^2+t) + d; % example ...

4 years ago | 1 answer | 0

1

answer

Question


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

4 years ago | 2 answers | 0

2

answers