Baris Unsal
Followers: 0 Following: 0
Feeds
提问
What is the main error in this code and how can it be solved?
Here is the code: a=0; b=1; c=1; d=L; %initialization % report pair a,b % report pair c,d while ~((c==1)&(d==1)) % test...
2 years 前 | 1 个回答 | 0
1
个回答提问
Hi, i want to get a gaussian curve fitting plot, function is y = A*exp-((x-mu)^2/2*sig^2). y axis must be between -0.2 and 1 with counting by 0.2 per each step, any tips?
f = @(x,A,mu,sig) A*exp(-(x-mu).^2)/(2*sig^2); A = 1; mu = 7; sig = 1.5; x = 0:2:10; y = -0.2:0.2:; y = f(x,a,b,c); plot(x,...
3 years 前 | 2 个回答 | 0