WICHTIG: Der Betrieb von goMatlab.de wird privat finanziert fortgesetzt. - Mehr Infos...

Mein MATLAB Forum - goMatlab.de

Mein MATLAB Forum

 
Gast > Registrieren       Autologin?   

Partner:




Forum
      Option
[Erweitert]
  • Diese Seite per Mail weiterempfehlen
     


Gehe zu:  
Neues Thema eröffnen Neue Antwort erstellen

Absoluter Beginner braucht Hilfe

 

juliaa
Forum-Newbie

Forum-Newbie


Beiträge: 1
Anmeldedatum: 25.03.20
Wohnort: ---
Version: ---
     Beitrag Verfasst am: 25.03.2020, 18:15     Titel: Absoluter Beginner braucht Hilfe
  Antworten mit Zitat      
Hey Leute,
Ich bitte dringend um Hilfe. Ich muss mir Matlab komplett selbst beibringen und habe das assignment heute erst bekommen. Ich musste von meinem Auslandssemester zurückreisen nach Deutschland und bin komplett überfordert. Leider muss es bis zum 3.4 schon abgegeben werden. Die ersten Fragen werde ich sicher mithilfe von Tutorials hinbekommen. Aber Nummer 5 und 6 werde ich ganz sicher nicht mehr schaffen.
Ich bitte um Hilfe, denn ich weiß gerade echt nicht mehr weiter... Vielen Dank.

Question 5:

Suppose we have a business operating in six cities around the Pacic Rim: San Diego, San Francisco,
Tokyo, Shanghai, Manila, and Honolulu. We are interested in counting the number of ways we can travel from one city to another with at most n stopovers. We look up all the direct flights and put them in a table:
San Diego -> San Francisco
San Francisco-> San Diego, Tokyo, Shanghai, Manila, Honolulu
Tokyo -> San Francisco, Shanghai, Manila
Shanghai -> San Diego, San Francisco, Tokyo, Manila
Manila -> Tokyo, Shanghai, Honolulu
Honolulu -> San Francisco, Shanghai, Manila.

Let's say we want to get from San Diego to Manila with at most three stops along the way. For
example, the trip going from San Diego through San Francisco, then Honolulu, then Shanghai, then
Manila is a trip with exactly three stops.

5.1
Use Matlab to list all possible ways to get from San Diego to Manila with exactly three stops.
5.2 Use Matlab to
nd the number of ways to get from San Francisco to Tokyo with at most four
stops. (This is not the same as
nding the number of ways with exactly four stops!) Include all of
your commands and output in your write-up.

Question 6.

Design a diagram of the directed graph that corresponds the following vertex matrix
M =
0 1 1 0 1 1
1 0 1 0 0 1
1 0 0 1 1 1
0 1 1 0 0 0
1 1 1 1 0 1
0 0 0 0 0 0

Use Matlab to compute M4 and explain significance of the different entries.
Private Nachricht senden Benutzer-Profile anzeigen


Harald
Forum-Meister

Forum-Meister


Beiträge: 24.448
Anmeldedatum: 26.03.09
Wohnort: Nähe München
Version: ab 2017b
     Beitrag Verfasst am: 25.03.2020, 18:28     Titel:
  Antworten mit Zitat      
Hallo,

graph und digraph könnten helfen.
Ansonsten ist die Frage sehr speziell und ich vermute, dass in der Vorlesung Ansätze gezeigt wurden, wie man so was angeht? Wenn du z.B. einen Algorithmus benennen kannst, der verwendet werden soll, dann kann man dir helfen, das in MATLAB umzusetzen.
Eventuell kann es helfen, das auch auf MATLAB Answers zu posten (und bitte hier Bescheid geben, wenn du eine Antwort bekommen hast).

Grüße,
Harald
_________________

1.) Ask MATLAB Documentation
2.) Search gomatlab.de, google.de or MATLAB Answers
3.) Ask Technical Support of MathWorks
4.) Go mad, your problem is unsolvable ;)
Private Nachricht senden Benutzer-Profile anzeigen
 
Neues Thema eröffnen Neue Antwort erstellen



Einstellungen und Berechtigungen
Beiträge der letzten Zeit anzeigen:

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.
Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen
.





 Impressum  | Nutzungsbedingungen  | Datenschutz | FAQ | goMatlab RSS Button RSS

Hosted by:


Copyright © 2007 - 2024 goMatlab.de | Dies ist keine offizielle Website der Firma The Mathworks

MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.