Skip to main content
14-Alexandrite
September 27, 2018
Solved

hash range

  • September 27, 2018
  • 2 replies
  • 5544 views

Hi

I want to make a vector calculation problem, and i want make a graph for representation for solve my problem

For this, i need to hash a range on axis

Example:

For x axis

I define xmin:-10mm

I define xmax:10mm

I define xstep:0.5mm

I want to make a program for define a matrix that include all value.

Program must be return

-10

-9.5

-9

....

9

9.5

10

This for XYZ translation and RxRyRz rotation

Do you can to help me ?

Thanks

Best answer by Fred_Kohlhepp

All without programming!

2 replies

XDN14-AlexandriteAuthor
14-Alexandrite
September 27, 2018

I try it ...

with "for"

but i can't do it with "while"

Capture.JPG

 

24-Ruby IV
September 27, 2018

May be so

xrange.png

XDN14-AlexandriteAuthor
14-Alexandrite
September 27, 2018

Thanks

Y try it with "for"

It's OK , but is not elegant ...

Capture1.JPG

25-Diamond I
September 28, 2018

Hoe about this:

B.png

File in Prime 5 format attached

 

XDN14-AlexandriteAuthor
14-Alexandrite
October 1, 2018

Thank's It's great

Now, i want to reduce step when approaching the end point.

I use a new parameter for reduce step, or , i use a function (for example sin)

The end point is max positive value

 

25-Diamond I
October 1, 2018

Not sure what exactly you are looking for.

How about using "logspace"?

B.PNG