Sie verfolgen jetzt diese Frage
- Aktualisierungen können Sie in Ihrem Feed verfolgter Inhalte sehen.
- Je nach Ihren Kommunikationseinstellungen können Sie auch E-Mails erhalten.
Whats wrong with tester_app_3?
8 Kommentare
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3086111
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3086111
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3101761
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3101761
- I shortened the code so you just have the possibility to choose two types of combination from the listbox in tester_app_3: CaCl2 MgCl2 ZnBr2 and NaCl2 KCl ZnBr2.
- When I start the tester_app_2 that leads me to tester_app_3, I choose the nr of zones to be 3 and the nr of salts to be 3. Then I choose this salt combination CaCl2 MgCl2 ZnBr2 and choose ME.
- As you can see , the program is not accumulating osmotic_table results since I am getting zeros in all rows instead of my results. I am supposed to get three rows as I had chosen nr of zones to be 3.
- Since I have this code in tester_app_3
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3101771
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3101771
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3101966
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3101966
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3103076
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3103076
- I shortened the code so you just have the possibility to choose two types of combination from the listbox in tester_app_3: CaCl2 MgCl2 ZnBr2 and NaCl2 KCl ZnBr2.
- When I start the tester_app_2 that leads me to tester_app_3, I choose the nr of zones to be 3 and the nr of salts to be 3. Then I choose this salt combination CaCl2 MgCl2 ZnBr2 and choose ME.
- As you can see , the program is not accumulating osmotic_table results since I am getting zeros in all rows instead of my results. I am supposed to get three rows as I had chosen nr of zones to be 3.
- Since I have this code in tester_app_3
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3103301
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3103301
- Run tester_app2.mlapp
- Enter 3 for Nr of zones and 3 for Nr of salts
- Click Choose salts! button
- Selected CaCl2, MgCl2, and ZnBr2
- Clicked Start_analysis button
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3103306
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3103306
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3104151
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3104151
Akzeptierte Antwort
- Do not to make a variable an app property unless it's necessary to do so. Generally it's only necessary if that variable needs to be shared among multiple apps (in which case it must be a public property) or multiple functions within one app (in which case it can be a private property). I found that most of your app properties were really only needed in one function, so those have been made into local variables in the function where they are used. You can see the list of app properties now to get an idea of the very few really necessary app properties in each app, and understand why those particular things need to be app properties.
- Error-check and validate a variable value before storing it as an app property. It makes your programming job easier if you know your app properties are always valid (and consistent with each other).
- In general, think about what the program needs to do when the user entered something invalid. Arguably more important than (as least equally as important as) doing the right thing when a good value is entered is not doing the wrong thing (i.e., crashing / generating an uncaught error) when a bad value is entered. In designing GUIs you have to give plenty of thought to all the bad states the program can get into, not only the one good state where everything is fine.
16 Kommentare
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3123766
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3123766
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3123946
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3123946
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3164126
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3164126
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3165096
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3165096
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3165376
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3165376
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3165656
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3165656
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3193246
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3193246
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3199746
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3199746
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3200661
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3200661
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3200666
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3200666
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3200696
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3200696
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3200746
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3200746
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3201716
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3201716
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3201776
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3201776
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3204661
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3204661
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3205436
-
Verknüpfen
Direkter Link zu diesem Kommentar
https://de.mathworks.com/matlabcentral/answers/2089611-whats-wrong-with-tester_app_3#comment_3205436
Weitere Antworten (0)
Siehe auch
Kategorien
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Es ist ein Fehler aufgetreten
Da Änderungen an der Seite vorgenommen wurden, kann diese Aktion nicht abgeschlossen werden. Laden Sie die Seite neu, um sie im aktualisierten Zustand anzuzeigen.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.
Amerika
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asien-Pazifik
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)