How to plot four variables in a line graph ?
Show older comments
I have one equation with 4 variables (x,y,z,d).I substitute the variable x in the equation and have 3 variables. I want to plot with 3 variables in a line graph.
How can I plot this graph? Thank you very much for your answer :)
6 Comments
KSSV
on 8 Oct 2018
Show us the equation....I guess there would be some range to other variables as well i.e for (x,y,z)
chayanon summueang
on 8 Oct 2018
Edited: chayanon summueang
on 8 Oct 2018
KSSV
on 8 Oct 2018
Copy the code....no image snippets.....
chayanon summueang
on 8 Oct 2018
Edited: KSSV
on 8 Oct 2018
Jan
on 8 Oct 2018
@chayanon summueang: By the way, the code looks much nicer, if you replace the expensive power operation 1*(10^-9) by the fast constant 1e-9. In addition you can use the "{} Code" button instead of inserting a blank line after each line of code.
You forgot to mention the problem you have with this code.
madhan ravi
on 8 Oct 2018
Btw no of elements of x4 y4 are not the same.
Answers (0)
Categories
Find more on Display and Exploration 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!