When I was playing around trying to figure this out I ended up using: n = 5; for x = 1:(n-1) n = n * x end In that case, you don't have to initialize the third variable. Whatever "n" gets set to, the vector expressed by "x" is all the whole numbers that come before the value for "n".
Great explanation. It helped me a lot for my homework
Leon Rodríguez, glad to see your appreciation for our Video. Do support us by Subscribing to our UA-cam Channel
Happy Learning :-)
When I was playing around trying to figure this out I ended up using:
n = 5;
for x = 1:(n-1)
n = n * x
end
In that case, you don't have to initialize the third variable. Whatever "n" gets set to, the vector expressed by "x" is all the whole numbers that come before the value for "n".
Well explained
Thank You Ratul choudhury! Happy Learning :-)
Thank you
You are welcome hor falih! Happy Learning :-)
I didn't understand my teacher but you made the lesson easy 💗
wow super dude
Thank you 😃Happy Learning :-)