Community Profile

photo

sermet OGUTCU


N.E.U university

Last seen: Today Active since 2016

Statistics

  • Thankful Level 3
  • Explorer

View badges

Content Feed

View by

Question


different number of delimiters error using readtable function
I use the following code for reading text file: fileID = fopen(full_file_name); fclose(fileID); tCOD=readtable(full_file_name...

2 days ago | 1 answer | 0

1

answer

Question


saving matrix using fprintf in .txt file with different formatSpec
data=[2 0.232 0.333 0.421 0.111;3 0.111 0.252 0.385 0.600;4 0.500 0.620 0.100 0.210]; startingFolder='C:\Program Files\MATLAB';...

9 days ago | 1 answer | 0

1

answer

Question


"Unable to perform assignment because the left and right sides have a different number of elements error" using find command
reference=[1 2 3 4 5 6 8 9 10]; target=[1 2 3 4 6 7 8 9 10]; for i=1:9 index(i)=find(reference(i)==target); end Here, after...

24 days ago | 1 answer | 0

1

answer

Question


removing some the elements in cell array
data_array = 1×5 cell array Columns 1 through 9 {5×1 cell} {5×1 cell} {5×1 cell} {5×1 cell} {5×1 ce...

28 days ago | 1 answer | 0

1

answer

Question


find function using wildcards
fileID = fopen(full_file_name); header = textscan(fileID, '%[^,\n]'); fclose(fileID); end_of_header_line=find(contains(header...

30 days ago | 1 answer | 0

1

answer

Question


removing specific rows from char array
data=['01'; '02'; '03'; '04'; '05'; '06'; '07'; '08'; '09'; '10']; How I can remove the 1st and 5th columns from data aray?

2 months ago | 1 answer | 0

1

answer

Question


splitting cell array consists of string and numeric characters
I have a cell array (n x 1). Each cell looks something like this: * 2021 3 29 0 0 0.00000000 I need to remove * from each...

2 months ago | 1 answer | 0

1

answer

Question


using matlab fileread function for some portion of text data
data = regexp(fileread(full_file_name),'\n','split'); end_of_header_line = find(contains(data,'* ')); I find the row number ...

2 months ago | 1 answer | 0

1

answer

Question


unable to make invisible for edit box in gui.
I have a GUI. In this GUI, I created an empty edit text. I need to make invisible this edit text. I appended the following code ...

2 months ago | 1 answer | 0

1

answer

Question


parallel processing for readtable function
ps = parallel.Settings; ps.Pool.AutoCreate = false; %do not autocreate parpool when encountering a |parfor| ps.Pool.IdleTimeou...

2 months ago | 1 answer | 0

1

answer

Question


using readtable function except for last five lines from text file
for i=1:2 line_check{i,:} = regexp(fileread(full_file_name(i,:)),'\n','split'); end_of_header_line(i) = find(contains(line_che...

2 months ago | 1 answer | 0

1

answer

Question


putting space between string and double using fprintf
fprintf(fid,'%*s %*s\n',10,' G1',10,' G2'); fprintf(fid,'%s %.1f %s %.1f\n', 'Average_1:', data_1, 'Average_2:', data_2)...

2 months ago | 1 answer | 0

1

answer

Question


Download files from https server using username and password
url = 'https://cddis.nasa.gov/archive/gnss/products/0971/'; In this https server, I need to download "cod09710.eph.Z" file for ...

2 months ago | 2 answers | 0

2

answers

Question


aligning data for fprintf
for j=1:2 [a(j),b(j)]=size(char(FileName(:,j))); % b=[38 38] [c(j),d(j)]=size(char(FileName2(:,j))); % d=[38 38] first_spa...

2 months ago | 2 answers | 0

2

answers

Question


extracting sub matrix from a cell array
data: 2 x 1 cell array = [ 378063 x 12 table] [ 377840 x 12 table] I use the following codes to extract sub matrix from dat...

3 months ago | 1 answer | 0

1

answer

Question


creating a loop for a specific computation
tCOD=readtable(full_file_name,'FileType','text', ... 'headerlines',end_of_header_li...

3 months ago | 1 answer | 0

1

answer

Question


extracting columns from multiple cell arrays consist of table data
for j=1:2 tCOD{j,:}=readtable(full_file_name(j,:),'FileType','text', 'headerlines',end_of_header_line(j),'readvariablenames',0)...

3 months ago | 1 answer | 0

1

answer

Question


Unable to perform assignment due to the different length of sides
[FileName,pathname,d] = uigetfile('*.sp3','Choose the products','MultiSelect','on'); for i=1:2 full_file_name(:,i) = fullfile(...

3 months ago | 1 answer | 0

1

answer

Question


extracting the last three characters from cell array
[FileName,pathname,d] = uigetfile('*.SP3','Choose the products','MultiSelect','on'); FileName = 1×2 cell array {'CO...

3 months ago | 2 answers | 0

2

answers

Question


determining spaces between two strings in fprintf function
fprintf('%s %s\n',' G',' G'); I need to define the lenght of the two spaces. One space starts from the first line to the fi...

3 months ago | 1 answer | 0

1

answer

Question


defining string variable in fprintf function
result_1=10.5; result_2=9.9; string1='data1'; string2='data2'; fprintf(fid','string1 %.1f string2 %.1f\n', result_1, r...

3 months ago | 1 answer | 0

1

answer

Question


start to write for a specified location using fprintf
FileName1='data_file'; result_1=23.9; FileName2='data_file2'; result_2=21.9; startingFolder='C:\Program Files\MATLAB'; i...

3 months ago | 2 answers | 0

2

answers

Question


extracting all lines includes specific string from text file
I have a data file (the attached one). I used the following codes to read this file. [FileName,pathname,d] = uigetfile('*.txt')...

3 months ago | 1 answer | 0

1

answer

Answered
extracting numbers after the particular string from cell array
I attached the original file.

4 months ago | 0

Question


extracting numbers after the particular string from cell array
data={'333', 'AS C37 2021 03 28 00 05 30.000000 1 -0.884071511631E-03','abvc','400 55 a','AS G17 2021 3 28 0 17 30.0...

4 months ago | 2 answers | 0

2

answers

Question


wilcard usage with strncmp
I have a cell array data (C). I use the following code to find specific character in the C; find_character = strncmp(C, '* 202...

5 months ago | 2 answers | 0

2

answers

Question


The efficient way (in terms of speed and consistency) for parsing a big text file with textscan
I have a text file consists of apprx 500 000 lines. I appended the header and some data parts in below. #dP2021 4 3 0 0 0....

5 months ago | 1 answer | 0

1

answer

Question


using function with loop
function [b, n, index] = RunLength(x) d = [true; diff(x(:)) ~= 0]; % TRUE if values change b = x(d); % El...

6 months ago | 1 answer | 0

1

answer

Question


find a row number in text file for certain condition
data=[1.2;1.0;0.05;0.4;0.3;0.2;0.1;0.05;0.04;0.03;0.03;0.02;0.01;0.001;0.01;0.01;0.001 ] ; Here, the answer to my problem is 8t...

6 months ago | 1 answer | 0

1

answer

Question


transform cfit (fitted data) into a numeric data array
f=fit(x,y,'linearinterp'); I need to save f fitted numeric data from the original data into a different array such as; fitted...

8 months ago | 1 answer | 0

1

answer

Load more