How can I save values in a matrix?
7 views (last 30 days)
I was asked to create a simulation of an airflight, in three steps:(The problem is in the third step, the first two functions work properly. However, I'm including them for better understandment)
function failure= SimEngine(x)
function crush= SimAirplane(a,x)
So in the third step, I was asked to use the two function above and create a function with three variables.
function y = SimNAirplanes(b,a,x)
When using the third function, e.g. SimNAirplane(2,2,0.5) this is displayed:
My question is what command can I use, so that Matlab displays this: y=[0;1;0]?