turbine and compressor maps

Hi everyone i want to create turbine and compressor map but i have Problem.I attached my files. You can see my datas. There are Speed lines and for each Speed line i want to create curve . i used just plot and matlab combined last value of first line with first value of next line. i think i have to write Loop but i do not know how should i start. Could you please help me ?

3 Comments

do not you have any idea?
cemsi888
cemsi888 on 25 Mar 2015
Edited: cemsi888 on 25 Mar 2015
Please help !!!
I added 2 Graphs to better describe my Problem. first graph is which i got second graph is which i want to reach

Sign in to comment.

 Accepted Answer

Hi,
to get started I would recommend to use reshape to convert your vectors to matrices, something like
linenoMatrix = reshape(lineno(2:end), 10, (length(lineno-1)/10));
Then you can loop over the columns of the matrices to produce your curves (or use surf/mesh on the matrices to plot the map instead of curves).
Titus

6 Comments

Thanx for answer but the Problem is i have maybe more than 100 datas and they are completely different.i mean that forexampele number 1 in line no does not repeat itsself always 10 times.I checked now my file .it goes till 75 and than starts again with 1 too..
Hi,
in this case you will need to loop, something like
allLineNos = unique(lineno);
for iLineNo=1:length(allLineNos)
% find the indices that correspond to this lineno:
idx = lineno(lineno==allLineNos(iLineNo));
% and plot
plot(etactt(idx), mdott_corr(idx));
hold on
end
Hope this gives the idea ...
Titus
it does not work. i think i have a indexing Problem or i have to Group the values.Which i did not understand is for example speedlines might be between 10th and 20 th lines after that between 120th and128th lines . how can matlab understand that i would like to use mdott and eta values which correspond These lines.
Hmm, in this case you probably need to describe in more detail the variables/data you have ...?
cemsi888
cemsi888 on 25 Mar 2015
Edited: cemsi888 on 25 Mar 2015
Did you check my photos that i have already uploaded it ? Look at this file if it is possible? Thanx
To sum up for example i have Speed line number 10. i must say matlab please find all Speed line number 10 and plot graph with mdottcor and etactt which are staying same lines i mean if Speed line 10 is staying 1 2 9 200 250 ...967 th lines take the same values of mdottcor and etactt from These lines

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!