Input matrix for scenarios

1 Ansicht (letzte 30 Tage)
jana
jana am 28 Mai 2013
I have a set of scenarios say 1,2,3. And each scenario has a set of zero-one matrices showing if an arc has failure or not. for example: scenario 1 will have [1,1,1;0,1,1] and scenario 2 will have [1,0,0;0,1,0].( 1 representing no failure and 0 representing failure) I dont know how to write it on matlab. I would be grateful if anyone of you could help me out with it.
Thankyou!

Akzeptierte Antwort

Image Analyst
Image Analyst am 28 Mai 2013
What do those 2 row by 3 column matrices represent? Why can't you just do
scenario1 = [1,1,1;0,1,1];
scenario2 = [1,0,0;0,1,0];
and the same for scenario3? It seems so obvious that I must be missing something.
  4 Kommentare
jana
jana am 28 Mai 2013
Thank you!, that really helped!
Image Analyst
Image Analyst am 28 Mai 2013
If we're done, then go ahead and mark it Accepted.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 28 Mai 2013
A=[1,1,1;0,1,1]

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by