Info

This question is closed. Reopen it to edit or answer.

could anyone help me to solve the issue

1 view (last 30 days)
jaah navi
jaah navi on 22 Apr 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
I am having two different values generated in my code .
A=10 and B=20.But i want to make A=20.Could anyone please help me on this.
  5 Comments
jaah navi
jaah navi on 23 Apr 2019
yes.I want to work backwards.
jaah navi
jaah navi on 23 Apr 2019
Edited: Walter Roberson on 23 Apr 2019
I have posted question which needs to be executed backwards with respect to the code:
code:
A=[ 12 11 10 9;
8 7 6 5;
4 3 2 1]
B=[1 2 3 4;
5 6 7 8;
9 10 11 12]
C= partitions(3)
total = length(C)
idx = randperm(total,1)
D = C(idx)
partdisp(D)
for len_partition=1:length(D)
for len_cluster=1:length(D{len_partition})
display_user_inside_cluster=(D{len_partition}{len_cluster})
for b =1:size(B,2)
for a =1:size(A,1)
rate(a,b) =((A(a,b)).*(B(a,b)))
end
end
overallrate(len_cluster)= sum(sum(rate))
end
end
totalrate=sum(overallrate)
Based on the totalrate i want to execute the command partdisp(D).Could you please help me on this.

Answers (0)

Community Treasure Hunt

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

Start Hunting!