Initializing a variable in a script to a value obtained from a function

Hey , I have a question, how do you initialize a variable in a script to a value obtained from a function. I have obtained power loss in the loadflow function. I want to initialize the base power loss in a script to the value obtained from the power loss, how should I go about.Kindly help.

1 Comment

Have a read here and here. It will greatly improve your chances of getting an answer.

Answers (0)

This question is closed.

Asked:

on 10 May 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!