Ask for creating composite curve
显示 更早的评论
how can i construct composite curve for hot stream and cold stream,and than combine both hot stream and cold stream ,the problem is i got 2 value for Y axis it was Ts and Tt and single value for x axis it was enthalpy,when i tried to construct the graph it say "vectors must be the same lenght" .
Thank you
回答(1 个)
Geoff Hayes
2015-1-16
David - how are you constructing the graph? What is the line of code that you are using?
If you have two vectors for the y-axis, and one for the x-axis, then why not try the following
% create some example x and y data
x = 1:1:100;
y1 = x.^2;
y2 = -x.^2;
% plot the results: x vs y1, and x vs y2
plot(x,y1,x,y2);
Your error message seems to indicate that you were trying to plot a combination of the two y vectors versus the single x vector (and so they would be of different lengths). Was this the case?
2 个评论
David Napitupulu
2015-1-16
Geoff Hayes
2015-1-16
What is the code that you are using to plot the data?
类别
在 帮助中心 和 File Exchange 中查找有关 Graphics Performance 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!