photo

kingsley


Active since 2017

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


assign value and plot outside the loop
function [call_value]=different_k(S, r, sigma, t, steps) call_value=zeros(226,1); for i=75:300 call_valu...

mer än 6 år ago | 0 answers | 0

0

answers

Question


print out a matrix with a large size
I have a matrix with a large size. How can I print it out as the form showed in the picture. <</matlabcentral/answers/upload...

nästan 7 år ago | 0 answers | 0

0

answers

Question


extract data from matrix and store into a new matirx
I want to extract data of row 6 and the last row from the test matrix. Here is my code: test=[1 2;13 12; 3 0; 4 0; 5 3; 30...

nästan 7 år ago | 1 answer | 0

1

answer

Question


Question about logical calculation in matrix
I want to sum up the numbers on the 1st column if its corresponding numbers on the 2nd column =1; and if sum up the numbers on t...

ungefär 7 år ago | 2 answers | 0

2

answers

Question


Convert higher order to first order system
I'm trying to solve the higher order ode by using RK4 method. Here is the code I have so far. function [y] = rk4_high_ode(...

mer än 7 år ago | 1 answer | 0

1

answer

Question


trouble of taking derivative of function in newton method
I'm trying to write a code for newton method. But I'm having a trouble of taking the derivative of the function(f(x(i))). Here i...

mer än 7 år ago | 0 answers | 0

0

answers

Question


I created a zeros (n+1 by n+1) matrix. And I want the value 2*i on the row (2 : n)&(column 1:n-1) , where i is from 1 to n-1, how should I get that? Can anyone help me out?
I tried this : n=4; A=zeros(n+1); for i=2:n-1 A([2:n,2:n-1])=[2*i] end But it didnt work

mer än 7 år ago | 2 answers | 0

2

answers

Question


I'm trying to create a n by n sparse matrix with 3*xi-xi^2 on the main diagonal of K, and with with 6*xi on the sup-diagonal of K , where i starts from 1 to n. And everywhere else 0. Can anyone please tell me how to get that ?
Before I created a matrix that the main diagonal of K are alternatively 2 and -2’s, the sub- and sup-diagonal of K alternatively...

mer än 7 år ago | 1 answer | 0

1

answer

Question


Error in SOR function.
I'm trying to create a function that performs the SOR method. Here is the code I have and the test program. When I ran the test ...

mer än 7 år ago | 1 answer | 0

1

answer

Question


How to find/present all of the grid points xi, where xi = 2+(i-1)*2 for 0<=i<=n.
I'm trying to figure out how to display the value of from x(0) to x(n)

mer än 7 år ago | 1 answer | 0

1

answer

Question


how to make the numbers on the matrix with alternative sign?
I want to create a matrix that the main diagonal of K are alternatively 2 and -2’s, the sub- and sup-diagonal of K alternatively...

nästan 8 år ago | 2 answers | 0

2

answers

Question


how to make the main diagonal of K are alternatively 2 and -2’s
How to get alternative signs for the numbers on the diagonal of a matrix

nästan 8 år ago | 2 answers | 0

2

answers