This short video shows how you can make your code shorter, more flexible, and readable by using a string variable to reference a field in a structure. This is called dynamic field name reference or… 더 읽어보기 >>
This short video shows how you can make your code shorter, more flexible, and readable by using a string variable to reference a field in a structure. This is called dynamic field name reference or… 더 읽어보기 >>
This was a question that came across my desk recently: “How do I know what figure numbers are already open?” The way to answer this is to query the “root” (always handle… 더 읽어보기 >>
Often when I post code, there is a discussion of how to optimize it. I tend to subscribe to this maxim:
Rules of Optimization:
Rule 1: Don’t do it.
Rule 2 (for experts only): Don’t do… 더 읽어보기 >>
clear num = [1 1 1 1 1 1 1]; den = [1 2 3 0 5 6 7]; for i = 1: numel(den) if den(i) == 0 a = 1 else … 더 읽어보기 >>