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

plus de 2 ans il y a | 1 réponse | 0

1

réponse

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

plus de 2 ans il y a | 1 réponse | 0

1

réponse

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

plus de 2 ans il y a | 2 réponses | 0

2

réponses

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

plus de 2 ans il y a | 1 réponse | 0

1

réponse

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

plus de 2 ans il y a | 1 réponse | 0

1

réponse

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

plus de 2 ans il y a | 2 réponses | 0

2

réponses

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

plus de 2 ans il y a | 1 réponse | 0

1

réponse

A répondu
extracting numbers after the particular string from cell array
I attached the original file.

plus de 2 ans il y a | 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...

plus de 2 ans il y a | 2 réponses | 0

2

réponses

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

presque 3 ans il y a | 2 réponses | 0

2

réponses

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

presque 3 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 3 ans il y a | 1 réponse | 0

1

réponse

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

presque 3 ans il y a | 1 réponse | 0

1

réponse

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

environ 3 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

plus de 4 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 5 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 5 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 5 ans il y a | 1 réponse | 0

0

réponse

Question


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

environ 5 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 8 ans il y a | 1 réponse | 0

1

réponse

Question


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

presque 8 ans il y a | 1 réponse | 1

1

réponse