MATLAB: How to generate a code for this equation for loophomework compute this formula Best Answer You can use the following code for thisa = [429.494, 93.112, -6.050];N = 1024;temp = 0;lambda = zeros(1, N)for i = 1:N for j = 1:3; temp = temp + (a(j) * (((i - 1) / N - 1) ^ (j - 1))); end lambda(i) = temp; temp = 0;endThe lambda array will contain the final values. Related SolutionsMATLAB: How do i plot a cell array fi{i} where every cell contains 1*1 matrix gama_rd=50;v = 0.1;lambda=0:.01:100*.01;fi=((lambda*v*gama_rd+lambda*v+2-lambda).*(1-lambda))./((lambda*v+2-lambda).*(lambda*v+1-lambda));plot(lambda,fi) MATLAB: Index exceeds matrix dimensions error You should use ( and ) not { and }.Try this code: t=zeros(10,1);for n=1:10if n/2>2t(n)=t(n-1)+1endend Related QuestionHow to plot a graph in nmAvoiding for loop with ismemberMonte carlo simulation simplificationHelp modifying a User-defined-function
Best Answer