Frage


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

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

mehr als 2 Jahre vor | 1 Antwort | 0

1

Antwort

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

mehr als 2 Jahre vor | 0

Frage


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

mehr als 2 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 3 Jahre vor | 2 Antworten | 0

2

Antworten

Frage


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

fast 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

etwa 3 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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',[])...

mehr als 4 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 5 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

etwa 5 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 1 Antwort | 0

1

Antwort

Frage


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

fast 8 Jahre vor | 1 Antwort | 1

1

Antwort