Community Profile

photo

kingsley


2017년부터 활동

통계

  • Thankful Level 3

배지 보기

Content Feed

보기 기준

질문


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

대략 6년 전 | 답변 수: 0 | 0

0

답변

질문


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

대략 6년 전 | 답변 수: 0 | 0

0

답변

질문


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

대략 6년 전 | 답변 수: 1 | 0

1

답변

질문


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

6년 초과 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 7년 전 | 답변 수: 0 | 0

0

답변

질문


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

거의 7년 전 | 답변 수: 2 | 0

2

답변

질문


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

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


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

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


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)

거의 7년 전 | 답변 수: 1 | 0

1

답변

질문


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

대략 7년 전 | 답변 수: 0 | 0

0

답변

질문


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

대략 7년 전 | 답변 수: 2 | 0

2

답변