Problem 9. Who Has the Most Change?

2 次查看(过去 30 天)
ricardo gunawan
ricardo gunawan 2013-7-15
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=max(d);
for i=1:length(d)
if d(i)==c
b=i;
end
end
i got wa please explain idont understand
  4 个评论
ricardo gunawan
ricardo gunawan 2013-7-15
编辑:ricardo gunawan 2013-7-15
ok.... i just newbie .how to use debugger??
Jan
Jan 2013-7-15
Set a break point in the first line (see the small lines left beside the editor pane) and start the code. Searching in the documentation for "debugger" will be a revelation also:
docsearch debugger

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Historical Contests 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by