필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Interpolating data whilst keeping subheadings

조회 수: 1 (최근 30일)
Tom Wetherill
Tom Wetherill 2013년 4월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
I have a large data set containing temperature and salinity data for the Celtic Sea and I'm having an issue with the interpolation. I used the following script to remove all the data i want removed however this gets rid of the dividing subheadings containing locations and times so i simply end up with a massive block text of data that is not discernible.
X=Sal_Celtic_Sea;
Xnew = X(X(:,1)>120,:);
Below is an example of the text i am working with. I want to keep the lines beginning with % but my script removes them all. Any help with this problem would be very much appreciated.
% -8.900000 58.016700 1964 2 22
30.0000 34.2000
50.0000 34.2030
75.0000 34.2100
100.0000 34.2280
125.0000 34.2510
150.0000 34.2600
% -7.483300 56.566700 1971 3 31
.0000 34.7300
10.0000 34.7330
20.0000 34.7370
30.0000 34.7400
50.0000 35.0200
75.0000 35.1370
100.0000 35.1930
125.0000 35.2240
150.0000 35.2460

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by