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

cemsi888
cemsi888 2015년 3월 25일
do not you have any idea?
cemsi888
cemsi888 2015년 3월 25일
편집: cemsi888 2015년 3월 25일
Please help !!!
cemsi888
cemsi888 2015년 3월 25일
I added 2 Graphs to better describe my Problem. first graph is which i got second graph is which i want to reach

댓글을 달려면 로그인하십시오.

 채택된 답변

Titus Edelhofer
Titus Edelhofer 2015년 3월 25일

0 개 추천

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

cemsi888
cemsi888 2015년 3월 25일
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
cemsi888
cemsi888 2015년 3월 25일
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.
Titus Edelhofer
Titus Edelhofer 2015년 3월 25일
Hmm, in this case you probably need to describe in more detail the variables/data you have ...?
cemsi888
cemsi888 2015년 3월 25일
편집: cemsi888 2015년 3월 25일
Did you check my photos that i have already uploaded it ? Look at this file if it is possible? Thanx
cemsi888
cemsi888 2015년 3월 26일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2015년 3월 24일

댓글:

2015년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by