I want to plot values from a .txt containing more data than I want to plot. I also want to add a scaling to the x-axis with a magnitude of 10^4. The plot I want should look like this:
I want Cl vs. Cd plottet from the .txt-file.

2 件のコメント

CHIRANJIT DAS
CHIRANJIT DAS 2022 年 11 月 7 日
@Aksel Andrè Wiik Martinsen show what you have tried so far.
Aksel Andrè Wiik Martinsen
Aksel Andrè Wiik Martinsen 2022 年 11 月 7 日
data=readmatrix('4311_test.txt');
plot(data(:,3),data(:,2))

サインインしてコメントする。

 採用された回答

VBBV
VBBV 2022 年 11 月 7 日
編集済み: VBBV 2022 年 11 月 7 日

0 投票

data=readmatrix('4311_test.txt');
plot(data(12:end,3)*1e4,data(12:end,2)) % multiply with 10000
grid minor
xlabel('10^{4} x C_{D}')
axis([0 400 0 1.5])

その他の回答 (0 件)

カテゴリ

編集済み:

2022 年 11 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by