how to call output of a problem from another program
Show older comments
clear all
close all
clc
Device = [1 0;2 0;3 0;4 0;5 0;6 0;7 0;8 0;9 0;10 0]
RB = [1 6; 2 7;3 4;4 9;5 1;6 12]
enodeB = [1 2 3 4 5];
occupied = [];
clc
cs=0;
for ii=1:100
selection_try20
end
success_p=cs
p_allocation=cs/100
how to call this p_allocation value from another part of this problem from another tab.both tab are opened in matlab
5 Comments
madhan ravi
on 26 Jun 2020
save that variable as .mat file and load it in other program where you want to use it.
save p_allocation
load p_allocation % in another program
raqib Iqbal
on 27 Jun 2020
raqib Iqbal
on 12 Jul 2020
madhan ravi
on 12 Jul 2020
It’s correct. You have write permission issues.
Walter Roberson
on 12 Jul 2020
You are probably in a directory that you do not have write access to, such as if you have not cd'd out of the installation directory.
Answers (0)
Categories
Find more on Entering Commands in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!