hi... i want to store the output of matlab program into workspace
Mostra commenti meno recenti
i 'm working on power fault anlysis.... i'vw created a code for power fault analysis where i get voltage and current magnitudes and also angle magnitudes so i want to store this output data that is voltage magnitudes into workspace i've tried using assignin,diary,evalin but no use please can anyone tell me how to do it plsssss asap
Risposte (2)
Stalin Samuel
il 28 Ott 2014
to save: :save filename variable_name
to load:load filename
Orion
il 28 Ott 2014
Hi,
let say your function is called power_fault and has one output : voltage
if you call this function inside another function, let say main, you need to do something like :
function main(data)
% call to power fault analysis
voltage = power_fault(data);
% send the data voltage in the workspace
assignin('base','voltage',voltage);
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!