how to call output of a problem from another program
Afficher commentaires plus anciens
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 commentaires
madhan ravi
le 26 Juin 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
le 27 Juin 2020
raqib Iqbal
le 12 Juil 2020
madhan ravi
le 12 Juil 2020
It’s correct. You have write permission issues.
Walter Roberson
le 12 Juil 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.
Réponses (0)
Catégories
En savoir plus sur Entering Commands dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!