hash range
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
Solved! Go to Solution.
- Labels:
-
Other
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I try it ...
with "for"
but i can't do it with "while"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May be so
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks
Y try it with "for"
It's OK , but is not elegant ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Oh, you wanted an elegant solution...:
(Prime 4 file attached)
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Not sure what exactly you are looking for.
How about using "logspace"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Great very Great !
Sorry, But i have another question (it's hard for me to learn Mathcad)
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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:
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
But i can't make a line between all point in the same color
Thanks for all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
