Question

Iteration of a matrix equality

I have been trying to solve an equation of the matrices with the iteration. * A*PNode=del_node ; ...

circa 3 anni ago | 1 answer | 0

Question

solving iterative equations in matlab

For a heat exchanger modelling, I would like to give different equations into the Matlab, and solve the unknowns with respect to...

circa 4 anni ago | 1 answer | 0

Question

What is wrong with this loop?

for kn=1:199 for snn=1:6591 for sn=1:3 if x1c{kn+1,1}(snn,sn)-x1c{kn,1}(snn,sn)>20 x1c{kn+...

circa 4 anni ago | 1 answer | 0

Question

Limit of a Cell

I have a "x1c" cell, and with the following code: tn=1 for N=1:6591 for t=1:200 k=(((abs(x1c{t,1}(N)-x...

circa 4 anni ago | 1 answer | 0

Question

Value Storage from Cells with Matlab

for j=1:200 x1c{j,1}=[FM{1,j}{1,2},FM{1,j}{1,3},FM{1,j}{1,4}]; end I have this cell and I want the extract the value...

circa 4 anni ago | 1 answer | 0

Question

Math operations with Imported Data from Text

I have imported a text file. When I multiply the cells such as, filename(4,7)*filename(6,5); I get an error. I extracted data as...

circa 4 anni ago | 1 answer | 0

Question

Using solve function to find the roots

syms x y = 2*x*exp(-x)-sin(x)==0; d=solve(y,x) It gives the "zero" as the only value that makes the y zero. But the r...

circa 4 anni ago | 1 answer | 0

Question

The value that makes the derivative zero

Consider the function: f(x) = x^2* e^(-x) . I want to find the point that makes the derivative of this function zero. M...

circa 4 anni ago | 1 answer | 0

Solved

Find all elements less than 0 or greater than 10 and replace them with NaN

Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

circa 4 anni ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

circa 4 anni ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

circa 4 anni ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

circa 4 anni 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 ...

circa 6 anni 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...

circa 6 anni ago