Multiple two different vectors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Multiple two different vectors
Hi everyone,
I want to use two different vectors in one equation ...what should be the iterator f ,q and dz
I used length function but it gives me strange results
Solved! Go to Solution.
- Labels:
-
Algebra_Geometry
-
Civil_Engineering
-
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
Vectorization can only be used if all involved vectors/matrices are of the same dimension.
Its absolutely not clear to me what you expect as the result of this calculation. Maybe one single 3x1 vector??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The problem is I'm lost. myself . I don't know what's my question is ... hhhhhh I will try to solve it . Sorry for wasting your time
Thanks anyway my friend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
You wrote that your second attempt gave you "strange results". So that means that you expected a different result - which one?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Do you see the f and q both of them have 3 matric ... The matrics in first raw (10X1) is actually the corresponding values of dz .. what I want to do is to multipy dz with the frist raw and then do the same in the second raw ... and the result of M should look like q >>> three matrices
I will write demo worksheet and upload it right away
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
So why not set up a small worksheet with a few vectors/variables of similar dimensions and post it, so we can show whats needed to do?
Its hard to explain just in words...
Try this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Sure .. See I have x and y both of them has 3 matrices I want to multiply z with first matrics of both of them like ( x*y*z)=(1*7*5) and then (2*5*8) in the first matrics raw and then does the same in the second matric so on... and j should look like x and y ..... the sheet is attached
- 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
Perfect .... Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Here is another way using an auxiliary function instead of the range k.
But its harder to read and to understand whats going on so I would prefer the variant using the range
And of course you could explicitly program the loops which are performed implicitly by the range and the vectorization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Nice .. thank you
