フィルターのクリア

hi... i want to store the output of matlab program into workspace

2 ビュー (過去 30 日間)
praneeth
praneeth 2014 年 10 月 28 日
回答済み: Orion 2014 年 10 月 28 日
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

回答 (2 件)

Stalin Samuel
Stalin Samuel 2014 年 10 月 28 日
to save: :save filename variable_name
to load:load filename
  2 件のコメント
praneeth
praneeth 2014 年 10 月 28 日
@stalin samuel hi... first of all thanx for replying... i tried your method but its not working...i think you didn't get my question properly... i've created a matlab program to produce voltage and current magnitudes the answe will change based on the requirement for example i created a code which will give me sym fault voltages occured at bus 1 the answer will be appeared and then i will give other option to same program it will give me lg fault at bus 1 and so on now i want to store the data(sym into workspace after that lg into workspace) into workspace how to do it...

サインインしてコメントする。


Orion
Orion 2014 年 10 月 28 日
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);

カテゴリ

Help Center および File ExchangeFunction Creation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by