How to get an y-value (y1(x)) for the sub condition of 0.8y1=0.25x
1 view (last 30 days)
Show older comments
Alexander Busch on 29 Jul 2019
Commented: Alexander Busch on 5 Aug 2019
i need some help. I have two collum vectors y=force and x=settlement. Now i had to write a scribt which gives me the first y-value (y1(x)) where the subcondition: 0.8*y1=0.25x is true. I am not so familar whith loops and so I would need some help.
Vimal Rathod on 2 Aug 2019
In the code from the above comments, there is a problem with defining the for loop condition as the error was shown.
The 'i' variable should be defined in the same line as the for. And the value should not have a semicolon(;) at the end.
Here is a sample in the code which you could try.
You could refer to the following documentation for further details;
More Answers (0)
Find more on Loops and Conditional Statements 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!