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

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

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

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

7 mois ago | 1 answer | 0

1

answer

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

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

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

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

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

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

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

11 mois ago | 1 answer | 0

1

answer

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

plus d'un an ago | 1 answer | 0

1

answer

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 2 ans ago | 1 answer | 0

1

answer

Question


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

plus de 2 ans ago | 1 answer | 0

1

answer

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

plus de 2 ans ago | 1 answer | 0

1

answer

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

plus de 2 ans ago | 0 answers | 0

0

answers

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

presque 3 ans ago | 1 answer | 0

1

answer

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

plus de 5 ans ago | 1 answer | 0

1

answer

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

plus de 5 ans ago | 1 answer | 1

1

answer