Simple example of storing data as a matrix or structure
When we design a program, the way we store our data will have an effect on how our code looks as we manipulate that data later. In this video we had the choice to store the coordinates of a robot and obstacles either as a matrix or as a structure with two vectors. This choice will change how we access that data later. In a trivial program like this one, the choice does not have much implication. However the bigger and more involved the programs become, the more these choices will matter.
댓글
댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.