Answered

Plotting several values returned by a function.

You could have plotted the result in a loop (if you have used the function file correctly). But I suggest u not do this. In o...

Plotting several values returned by a function.

You could have plotted the result in a loop (if you have used the function file correctly). But I suggest u not do this. In o...

6 years ago | 0

Answered

In the first part of the code, plot the approximation of π as a function of N, the number of terms in the series, for N between 1 and 15. The function to be used is (pi^2-8)/16=Summation(n=1:N)(1/((2n-1)^2*(2n+1)^2))

wish this could help. % the formula could be rewrote as pi=sqrt(sum(16/((2*n-1)^2*(2*n+1)^2)+8) N=[1:15, 20, 30]; ...

In the first part of the code, plot the approximation of π as a function of N, the number of terms in the series, for N between 1 and 15. The function to be used is (pi^2-8)/16=Summation(n=1:N)(1/((2n-1)^2*(2n+1)^2))

wish this could help. % the formula could be rewrote as pi=sqrt(sum(16/((2*n-1)^2*(2*n+1)^2)+8) N=[1:15, 20, 30]; ...

6 years ago | 0

Answered

Importing arbitrary assymetric matrix

try textscan() or strread() but as Walter posted, "The more the lengths are fixed and the formats are fixed, the ea...

Importing arbitrary assymetric matrix

try textscan() or strread() but as Walter posted, "The more the lengths are fixed and the formats are fixed, the ea...

6 years ago | 0

Answered

Suppose I have a matrix A(590x133). How should I find slope of each row of the matrix A

You could use that function (or many other funs) to get your slope,but u probably could not get all the slopes at one instance. ...

Suppose I have a matrix A(590x133). How should I find slope of each row of the matrix A

You could use that function (or many other funs) to get your slope,but u probably could not get all the slopes at one instance. ...

6 years ago | 0

Answered

Matrix creation with specific logic

If i did not take the def wrong, I'm afraid ur definition just gives (at most) the value of 90 different position in a matrix(fo...

Matrix creation with specific logic

If i did not take the def wrong, I'm afraid ur definition just gives (at most) the value of 90 different position in a matrix(fo...

6 years ago | 0

Answered

How can I solve simultaneous PDEs using pdepe?

I'm afraid matlab may not be able to solve coupled(interlinked) PDEs with its own pdepe function. I used that one before. Howev...

How can I solve simultaneous PDEs using pdepe?

I'm afraid matlab may not be able to solve coupled(interlinked) PDEs with its own pdepe function. I used that one before. Howev...

6 years ago | 0

| accepted

Answered

How can I make a function plot based on the values listed below?

just plot(X,Y) if ur workspace already have these 2 variables.

How can I make a function plot based on the values listed below?

just plot(X,Y) if ur workspace already have these 2 variables.

6 years ago | 0

Answered

how to make zero padding?

function out_put =adpadding(in_put) % just wish you matrix size is not too large [n m]=size(in_put); A=['a' 'b' '...

how to make zero padding?

function out_put =adpadding(in_put) % just wish you matrix size is not too large [n m]=size(in_put); A=['a' 'b' '...

6 years ago | 0

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

6 years ago

Solved

Returning a "greater than" vector

Given a vector, v, return a new vector , vNew, containing only values > n. For example: v=[1 2 3 4 5 6] n=3 vNew =...

6 years ago