Graf wrote: JanB1 wrote:
Well, the cool thing is when you can define the starting and end point of your array freely. So, the array starts at 11 and goes up to 35 for example. THAT is a real mess up. Oh, and UDTs (user-defined types, so you can define a data type by yourself) of course too.
That does actually sound pretty cool! I don't really know much about all the stuff you can do with MATLAB, as all I have been told is that it is 'useful'.
Unfortunately, my professors aren't programmers, so most MATLAB assignments are akin to "Write a 'For' loop and an 'If' statement to solve this contrived problem." It would be much better if they had a dedicated MATLAB class that freshman are required to take, rather than inconsistently ham fisting MATLAB into the regular courses. Several of my friends have their professor only teach MATLAB instead of the drone project that is supposed to be the focus of the curriculum. Some of my other friends have professors who haven't mentioned the language once. Most of my fellows in CpE, EE, and CS hate MATLAB, as all they have done with it are the basic assignments that do not demonstrate what MATLAB is good at, and instead often demonstrate what MATLAB's weaknesses are instead.
Yeah, it's called a "struct"
and is pretty common in PLC programming. It's really useful. You can, for example, define a struct for a specific purpose that contains floats, ints, bools and arrays. So you can feed that struct to a function, and within the function read the values of different sub-variables (inside the struct) via dot-notation.
We used MATLAB for control unit simulation in our control engineering courses. That was really cool. We did everything, tested the effects of the proportional, integral and derivative part of controllers and tested different variants of controllers. Some worked really well (PI-Controller) and some were absolutely useless (PD-controller). In the end, we tested PID-controllers and figured out how to calculate the different configuration values for them. And in the end we did some Fuzzy-logik and experimented with the extremely fast Fuzzy-Controller. THAT was interesting.
Automation engineer, lateral thinker, soldier, addicted to music, books and gaming.
Nothing to see here
: "Show me the smoldering corpse of Perfectionist Josh"