photo

Mark Loui


Last seen: mer än 3 år ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


Plotting 3D graph with 3 different set of coordinates
HI there I need some help please, %Node 1 x1=-419;y1=-341;z1=30; z2=15; z3=0; hold on plot(x1,y1,z1) hold on plot(x1,y...

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

1

answer

Question


How can i solve for this issue with the logical flow
n=length(q); coef=k*dt/dr; q_new=zeros(n,1); q(0)=0; % for i=1:n+1 % q_new(i)=q(i)+(coef*(q(i+1)-(2*q(i))+q(i-1))); ...

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

1

answer

Question


Problem with something that I do not understand
Hi there i dont quite understand this problem it is saying H=uold; %frhs=@(H) -0.6*(((r^2)*(sqrt(2*g*H)))/((2*R*H)-H^2)); %T...

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

1

answer

Question


A code to defined for the havlving for the trapezoidal rule
Hi i like to ask is there a version of the codes which enables me to find the xnew in the halving for the xnew in the Romberg in...

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

1

answer

Question


Hi i need some help here to put this into a matlab
Hi there i need some help please How can i put these understanding into matlab form while err<tol %I have other sets of code...

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

2

answers

Question


Getting a vector for different x value
Hi there i need some help please, i like to create a x value. this x value is determine by halfing the xnew value for example...

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

1

answer

Question


Asking for meaning of this code of what this is. But in General this is the Romberg Integration method
Hi there i have a set of codes but it is hard to understand, i believe it is not a code hence i cannot type it out here, can i p...

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

1

answer

Question


Getting the x from a function file to call inside another function file
Hi there i need help, i have written a function file lets say [m,c]=myfunction(x,y) where i defined the x and y inside this fun...

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

1

answer

Question


Getting the if or while loop to work
Hi i like to ask for some help please n=20; iter_h=0; x=rand(n,1); for i=1:n-1 h(i,:)=x(i+1)-x(i) iter_h=iter_...

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

1

answer

Question


Why is this output nothing and what can i change to make it work
n=20; x=rand(n,1) y=rand(n,1); RHS_empty=ones(n:1) iter_h=0 iter_a=0; for i=1:n-1 h(i)=x(i+1)-x(i); iter_h=ite...

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

1

answer

Question


Inserting a row into the matrix in each iterations
Hi there i like to ask how can i insert a new row/colum into the matrix with each increasing of the iterations for i=1:n-1 ...

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

1

answer

Question


How to get from a array to a vector
Hi there i have a question n=10; x=rand(n,1) for i=1:n-1 h(i)=x(i+1)-x(i); iter_h=iter_h+1; end I get the ou...

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

1

answer

Question


Getting a diag function
Hi there im stuck with this problem and really would like help here n=length(x) %Let says is 20 x=rand(n,1); y=rand(n,1); ...

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

0

answers

Question


How to get this into a loop
Hi there i like to ask how can i get this into a for loop x=rand(1,20) h1=(x(2,1)-x(1,1));%First interval h2=(x(3,1)-x(2,1))...

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

2

answers

Question


Getting a increasing by the nxn matrix inside a for loop
HI there i dont quite understand how to get a matrix that is increasing by nxn matrix like for example n=100 for i=1:n mat...

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

1

answer