How to attribute vectors from a matrix some proprieties?
Show older comments
I have to create a matrix with 4 columns and with some proprieties.The first column is a ,second b , third c , forth d.Those numbers have to be in an interval ( 1 ,2 ,...,10000) and the conditions are : a>b , (a-c)(b-d)>0, c>d.I've tried to "attach" to a vector a condition that depends on another vector , but i failed,I have to create a matrxi with There are a few rules before creating that matrix:
- You can't use while.
- You can't use for.
- In 1 matrix must appear all of the combinations that verifiy the conditions below.
Does someone know how to apply proprieties to a vector or have any idea how to resolve this problem ? I've tried a few methods but all of them failed.
4 Comments
Luna
on 8 Jan 2019
What have you done so far? Could you please share the code?
Jan
on 9 Jan 2019
I do not understand the question. What is "an interval ( 1 ,2 ,...,10000)"? What did you try to "attach"? Which vector depends on which otehr one? Post, what you have tried so far and an example output.
Victor Iordache
on 11 Jan 2019
Victor Iordache
on 11 Jan 2019
Accepted Answer
More Answers (0)
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!