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

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

5 months ago | 1 answer | 0

1

answer

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

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

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

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

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

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

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

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

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

2 years ago | 1 answer | 0

1

answer

Question


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

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

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

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

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

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

5 years ago | 1 answer | 1

1

answer