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..
Titus Edelhofer
Titus Edelhofer 2015 年 3 月 25 日
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 ExchangeMATLAB についてさらに検索

タグ

質問済み:

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