cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

hash range

XDN
13-Aquamarine
13-Aquamarine

hash range

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

1 ACCEPTED SOLUTION

Accepted Solutions
Fred_Kohlhepp
23-Emerald I
(To:XDN)

All without programming!

View solution in original post

11 REPLIES 11
XDN
13-Aquamarine
13-Aquamarine
(To:XDN)

I try it ...

with "for"

but i can't do it with "while"

Capture.JPG

 

ValeryOchkov
24-Ruby IV
(To:XDN)

May be so

xrange.png

XDN
13-Aquamarine
13-Aquamarine
(To:ValeryOchkov)

Thanks

Y try it with "for"

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

Capture1.JPG

LucMeekes
23-Emerald III
(To:XDN)

 Oh, you wanted an elegant solution...:

LM_20180927_itération.png

(Prime 4 file attached)

Success!
Luc

Werner_E
24-Ruby V
(To:XDN)

Hoe about this:

B.png

File in Prime 5 format attached

 

XDN
13-Aquamarine
13-Aquamarine
(To:Werner_E)

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

 

Werner_E
24-Ruby V
(To:XDN)

Not sure what exactly you are looking for.

How about using "logspace"?

B.PNG

XDN
13-Aquamarine
13-Aquamarine
(To:Werner_E)

Great very Great !Smiley Wink

 

Sorry, But i have another question (it's hard for me to learn Mathcad)

 

Capture4.JPG

 

On this picture

I have calculate a 6 lenght with equation (vector equation in 3D space)

I want to calculate all lenght with (same equation) lambda parameter variation

Lambda parameter variation was define with your solution.

example

1 calculations

lambda =0.1  the equation calculate 6 length

2 calculations

lambda =0.2  the equation calculate 6 new length

 

all lenght are concatenated in one global matrix

Another step, i need to see all value in graph (one line for 1 lenght variation )

in graph i need to have 6 curves for 6 lenght variation

 

Werner_E
24-Ruby V
(To:XDN)

Its hard to debug a picture. Always better to send the worksheet rather than a pic.

 

To get what you want you may turn your calculation of rho into a function of lambda.

Or you may calculate the 11 x 6 matrix using two nested loops.

XDN
13-Aquamarine
13-Aquamarine
(To:Werner_E)

I don't have a light worksheet for this

This calculation is the section of Gough Stewart platform worksheet

I make a section which isolate this problem

 

I solve my problem with this: 

Capture.PNG

But is not elegant method and i need to increment for loop with line number for lambda parameter

In the end i need a graph

Capture1.PNG

But i can't make a line between all point in the same color

 

Thanks for all

Fred_Kohlhepp
23-Emerald I
(To:XDN)

All without programming!

Top Tags