IMind soft

Author's software

Development

Design

Designing

Being tested

convertcoordmatrix

convertcoordmatrix(matrix)>

>

The convertcoordmatrix function does exactly what it says on the box — it takes an array of coordinates and turns it into a neat, user-friendly matrix. Everything is simple.

A typical situation: you have a list of points. For example, the coordinates of something in space. You may have just received them from an external source. — and they are in the form of an array, where each point looks like a set of numbers. Work with it directly? May. Is it convenient? Not very. This is where convertcoordmatrix comes to the rescue.

What she does:

first, it checks if your input is normal: if you messed up with the format, if nothing is mixed up in places,

then prepares a clean matrix, the future "packaging" for your coordinates,

next is the main part: it will neatly arrange all your points on the shelves (that is, in rows and columns),

and finally, a little cleaning: make sure that everything is in place, everything is correct and without debris.

As a result, you get not just some kind of array, but a structured set of data - understandable, readable and, most importantly, suitable for further calculations.

The function is simple on the outside, but smart on the inside. Why bother with your hands when you can call convertcoordmatrix and everything is ready?



Help on built-in functions
The rules of programming scripts
Programm options
Color constants

Top.Mail.Ru