NWC and LCM codes in Matlab

I need North-West Corner and Least Cost Method.
My inputs are:
c=[10 2 20 11
12 7 9 20
4 14 16 18];
s=[15 25 10];
d=[5 15 15 15];
..........................................................................................................
I want my output like this:
but there are 4 methods and 4 outputs with together. I could not parse and compile the codes.
I want just North-West Corner and Least Cost Method and output like above.
I would be glad if you help me.

Answers (0)

This question is closed.

Asked:

on 18 Nov 2020

Closed:

on 18 Nov 2020

Community Treasure Hunt

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

Start Hunting!