Feeds
질문
Problem 9. Who Has the Most Change?
function b = most_change(a) a(:,1)=a(:,1)*0.25; a(:,2)=a(:,2)*0.1; a(:,3)=a(:,3)*0.05; a(:,4)=a(:,4)*0.01; d=sum(a,2); c...
거의 11년 전 | 답변 수: 0 | 0
0
답변질문
Problem 32. Most nonzero elements in row
function r = fullest_row(a) x=sum(a==0); y=max(x); row=0; for i=1:length(x) if x(i)==y row=i; end r=...
거의 11년 전 | 답변 수: 2 | 0
2
답변질문
Problem 106. Weighted average
function y = weighted_average(x,w) f=x.*y; f=sum(f); y=f/length(x); end is there any error. i submit and get WA...
거의 11년 전 | 답변 수: 2 | 0
2
답변질문
Problem 17. Find all elements less than 0 or greater than 10 and replace them with NaN
i don't know what wrong with my code its very frustating really ( ̄へ ̄) here my code: function y = cleanUp(x) u=find...
거의 11년 전 | 답변 수: 1 | 0
1
답변질문
Problem 7. Column Removal
I don't know why my answer is wrong but please tell me.. function B = column_removal(A,n) A=A(:,[1:n-1 n+1:end]); hah...
거의 11년 전 | 답변 수: 2 | 0