How do I use a variable in dialog box?
5 views (last 30 days)
Show older comments
I am working on DFIG wind turbine now, and I want to control the output power.
Given enough wind speed, whatever we type in the "nominal output mechanical power" becomes the output.
However, I want the wind turbine to just output the necessary power, so I want to use a variable Pref.
Do you know how can I make this work?
I have attached a jpeg file for more info.
Thanks!
0 Comments
Answers (1)
Walter Roberson
on 19 Dec 2013
field_as_string = get(handles.TheFieldName, 'String');
if strcmpi(field_as_string, 'pref')
....
else
desired_output = str2double(field_as_string);
...
end
See Also
Categories
Find more on Wind Power in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!