提问


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 years 前 | 1 个回答 | 0

1

个回答

提问


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 years 前 | 1 个回答 | 0

1

个回答

提问


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 years 前 | 2 个回答 | 0

2

个回答

提问


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 years 前 | 1 个回答 | 0

1

个回答

提问


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 years 前 | 1 个回答 | 0

1

个回答

提问


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 years 前 | 2 个回答 | 0

2

个回答

提问


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 years 前 | 1 个回答 | 0

1

个回答

已回答
extracting numbers after the particular string from cell array
I attached the original file.

3 years 前 | 0

提问


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...

3 years 前 | 2 个回答 | 0

2

个回答

提问


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...

3 years 前 | 2 个回答 | 0

2

个回答

提问


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....

3 years 前 | 1 个回答 | 0

1

个回答

提问


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

3 years 前 | 1 个回答 | 0

1

个回答

提问


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...

3 years 前 | 1 个回答 | 0

1

个回答

提问


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...

4 years 前 | 1 个回答 | 0

1

个回答

提问


About the usage of for, while and return
I need to perform while loop many times as follows; data=xlsread('data.xlsx','B1:B86640'); % first part i_1=1; while (abs(da...

4 years 前 | 1 个回答 | 0

1

个回答

提问


bar plot cannot spread x axis homogeneously
imp_2d_E=[0 -1;0 0;0 3;0 0;0 0;0 0;0 0;2 3;0 0;1 0;0 0;0 1;0 0;0 0;1 0;0 0;1 1;0 0;2 2;0 0]; bar(imp_2d_E) set(gca,'XTick',[])...

5 years 前 | 1 个回答 | 0

1

个回答

提问


rows interval using textscan
What is the equivalent of xlsread('data.xlsx','B5:B10') in the textscan ?

5 years 前 | 1 个回答 | 0

1

个回答

提问


while loop with three conditions
i=2; while (sqrt(data(i,1)^2+data(i,2)^2+data(i,3)^2) > 0.10 && sqrt(data(i+1,1)^2+data(i+1,2)^2+data(i+1,3)^2) > 0.10 && sqrt(...

5 years 前 | 1 个回答 | 0

1

个回答

提问


plotting bars with respect to three different y axis
imp_2d_E=[1 0;-1 -3;-2 2;-1 0;5 2;-1 0;3 -1;2 2;1 -2;0 2;2 4;1 2;-3 -2;1 1;-2 -7;-3 -1;1 1]; bar(imp_2d_E) xtv = get(gca, 'XTi...

5 years 前 | 0 个回答 | 0

0

个回答

提问


bar graph doesn't show whole data
imp_2d_7_f=[2 1 2 3 6 5;0 0 2 5 4 5;1 2 3 0 1 2;3 2 2 1 5 5;1 3 2 4 4 6;0 0 2 3 6 9;... 1 1 2 3 9 9;0 1 3 5 7 3;1 1 2 3 5 2...

6 years 前 | 1 个回答 | 0

1

个回答

提问


matrix matching w.r.t row
matrix_1= 0 0 0 1 2 3 2 0 0 4 5 6 4 0 0 7 8 9 6 0 0 1...

8 years 前 | 1 个回答 | 0

1

个回答

提问


checking physical address of the computer
I have a matlab m file and I want to create executable file by the matlab compiler. I want to distribute this exe file with one ...

8 years 前 | 1 个回答 | 1

1

个回答