photo

Muhtasim Ahmed


Con actividad desde 2018

Followers: 0   Following: 0

Estadística

  • Thankful Level 3

Ver insignias

Feeds

Ver por

Pregunta


Can't click on the figure window
I get the figure I want but can't click on the figure 2 window. Here is my code for the ploting part: figure(2); plot(time,a...

más de 5 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Why am I not getting the graph I want?
<</matlabcentral/answers/uploaded_files/132349/h.PNG>> I am trying to use polar coordinate and graph the top part of a heart...

casi 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Anyone know any good resources that will help to write this Matlab code? I am trying to understand what is deflation method. Thanks.
Use the deflation method to find the third eigenvector and associated normalized eigenvector. 

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


I am doing runge kutta order 4 for a system of equations.Any bugs that giving me x1 and x2 =0 for all 200 values?
function[]= xp(n,t,x,i) k(1,i+1)=-3*x(2); k(2,i+1)=(1/3)*x(1); (differential equations) end function[]= abc(n,h,t,s...

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Is anything wrong with Eval function? I get value of pn =1 for all x values.
function HW_4_8() y= @(x)(1/(1+25*x.^2)); %x=linspace(-1,1,41); for i=0:5 x=cos(i*pi/40); ...

más de 6 años hace | 0 respuestas | 0

0

respuestas

Pregunta


I know in matlab, index start from 1, not 0; How come I get an error on line k1 saying index exceeds matrix dimension even though for loop starts from 2?
real x1; real x2; span=[0,4]; h=.04; x10=0; x20=1; x1(1)=x10; x2(1)=x20; step= 100; f=@(x1,x2) -3*x2; f1=@(x1,x2...

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Is it a right conversion from java to matlab? I am getting error. I am new on matlab and confused on functions.
// Java code public static void xp_system(int n,double t,double[x],int i){ // differential equation k[1][i]= -3*x[2];...

más de 6 años hace | 0 respuestas | 0

0

respuestas

Pregunta


How to apply runge kutta method for system of equations that are coupled ODE's? like x1'= -3*x2 and x2'=(1/3)*x1? I tried the code below but get an error on function define saying too may input arguments.
y=zeros(1,length(x)); z=zeros(1,length(x)); y(1)=0; z(1)=0; Fx1= @(x2)(3)*x2; Gx2=@(x1)(1/3)*x1; for i=2:(length(...

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Matlab functions with array
Let's say I have a function spline(n,u.v,w,x). How do I indicate that u,v, and w are arrays?

más de 6 años hace | 1 respuesta | 0

1

respuesta

Pregunta


I get error undefined function or variable 'n' but don't show the line number.
function BSpline_B=Coef(n,t,y,a) int8 i;int8 n;real p;real q;real r;real s; a=[];h=[];t=[];y=[]; for i=1:n-1 h(i)=t(i)...

más de 6 años hace | 1 respuesta | 0

1

respuesta