What is wrong in this code?

O=1; U=input('Enter number of retailers'); for u=1:U; Cuo=zeros(u:O); Cuo(u,O)=input('Enter traveling cost for retailer to collection center'); end SumCuo=Sum(Cuo(:)); disp(SumCuo);

Answers (0)

This question is closed.

Asked:

on 22 Feb 2017

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!