There are two modes possible.
1. As a standalone GUI which displays the weather information. For standalone mode you will need an UIWEATHER.INI file which contains start settings like color, units and the specified city codes. The UIWEATHER.INI should simplify the function call. So you can predefine the settings before and use only UIWEATHER without start parameters to show the weather forecast for specified cities.
2. It is possible to place the weather forecast within another GUI. In this case you should specify the GUI handle, position in pixels and some other settings if necessary.
If multiple city codes are specified you can use the contextmenu to switch between city names. The tooltipstrings provides additional infos.
Elmar Tarajan (2021). UIWEATHER ( www.weather.com ) (https://www.mathworks.com/matlabcentral/fileexchange/20313-uiweather-www-weather-com), MATLAB Central File Exchange. Retrieved .
OK! Indeed, I agree with you up to a certain point, but I think that using of M-script or M-file as an INI-File is absolutely ok and is very robust. Anyway I have recoded the handling of the INI-File. :)
A "Fair" raiting would be suspect in this case! John D'Errico, be (more) objective! :)
Sorry. But I stand by my statement. It is poor programming practice to force a user to edit your code to set their preferences. Well written code does not require this of the user, ergo, this does not qualify as well written code in my opinion.
However, I'm amazed that the author calls my review unfair, as I still gave it a "good" rating. In fact, I also considered a "fair" rating as an alternative. As this code is, it is not what I would describe as "excellent".
The user can set his own preferences in UIWEATHERINI.M file and each available feature is documented!
P.S. The person who might use my code should be able to use debugger, not mentioned to that the code is easy comprehensible for an programmer with enough experience.
A nice idea. But it is poor programming style to force the person who might use this to edit your code to set their own preferences.
Inspired by: Yahoo! Weather
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!