215 total contributions since 2013

I'm an assistant in the university.

Professional Interests: signal processing

Question

creating algorithm for specific computation

I need to perform below computation using algorithm approach. t=100; % constant et=1:1:4; % the numbers of "et" are variabl...

2 years ago | 1 answer | 0

Question

removing rows from matrix which equal particular number

A=[1 2 3;4 5 6;99 7 8;5 5 99;1 2 3;99 99 5]; How can I remove rows include 99 as follows; B=[1 2 3;4 5 6;1 2 3]; Th...

2 years ago | 1 answer | 0

Question

creating Lagrange interpolation w.r.t. two arrays

time=[t1 t2 t3]; data=[y1 y2 y3]; specific_time=tt; % for specific time tt, computation of data as follows; ...

2 years ago | 1 answer | 0

Question

creating loop with two variables

For example; a=0:2:10; b=0:2:6; % number of elements of a is always bigger than b I need to create for loop as below;...

2 years ago | 3 answers | 0

Question

plotting values with duration format

time_array=[6 0 0;6 1 0;6 2 0;6 3 0;6 4 0;6 5 0;6 6 0;6 7 0;6 8 0;6 9 0;6 10 0;6 11 0;6 12 0;6 13 0;6 14 0;6 15 0;6 16 0;6 17 ...

3 years ago | 1 answer | 0

Question

creating matrix w.r.t. rows number of another matrix

data=[1;2;8;9;11;12;19;22;24;26;30]; col_row=[1 2;1 4;1 8;1 11;2 4;2 8;2 11;3 10]; rows number in col_row are always asc...

3 years ago | 1 answer | 0

Question

manipulating three dimensional cell arrays

I have a three dimensional cell array data as follows; val(:,:,1) = [3x4 double] val(:,:,2) = ...

3 years ago | 1 answer | 0

Question

terminating the while if loop

while abs(dE) > 1e-12 iteration=iteration+1; E_old = E; E = M+(ecc(1)*sin(E)); %eccentric anomaly dE=E-E_old; ...

3 years ago | 2 answers | 0

Question

distinguishing exponential (e) from other characters with regexp

omega= '-1.86265e-09</' '-1.86265e-09</' '-1.74623e-09</' '-1.74623e-09</' '-1.62981e-...

3 years ago | 1 answer | 0

Question

using regexp with negative and positive floating numbers

data = '0.00640869<' '0.00640869<' '-0.00598145' '-0.00598145' '-0.0010376<' '-...

3 years ago | 1 answer | 0

Question

extracting only numeric part from cell array includes character and number

data= '0.0253906' '0.0292969' '0.03125</' '0.03125</' '0.03125</' '0.0058593' ...

3 years ago | 1 answer | 0

Question

Subscript indices must either be real positive integers or logicals error when using getFirstChild.getData function

I have a xml file (I attached the file). I can retrieve related variables in xml file but when it comes to store them with using...

3 years ago | 1 answer | 0

Question

extracting specific values between two characters within text file

I have a data text file. One parts of this file looks like; <Almanacs> <svAlmanac> <SVID>01</SVID> <alm...

3 years ago | 1 answer | 0

Question

convenient way to read and store values in xml file

I have a data file (attached file) whose format is xml (I changed its format to txt for attaching). I need to extract numeric va...

3 years ago | 1 answer | 0

Question

merging multidimensional cell array

AA_last=1x1x3 cell val(:,:,1) = [12x4 double] val(:,:,2) = [13x4 double] ...

3 years ago | 1 answer | 0

Question

plotting x axis with matched array numbers.

PDOP=[1.31;1.33;1.26;1.27;1.29;1.30;1.30;1.29;1.25;1.35;1.24;1.25;1.42]; time_array=[3 23 30;3 23 45;4 0 0;4 0 15;4 0 30;4 ...

3 years ago | 1 answer | 0

Question

using XtickLabel with fractions and integer numbers

time=[1:1:24]; interval_x_axis=0.5; set(gca,'XtickLabel',time(1:interval_x_axis:end)) % it gives "Warning: Integer op...

3 years ago | 1 answer | 0

Question

proper way of reading data from text file

The attached file is example data file. I need to store each element of line 2-3, 5-6, 8-9. The original file is bigger than thi...

3 years ago | 1 answer | 0

Question

Subscript indices must either be real positive integers or logicals while using plot function

figure(1) %time_north_sec=1x111 double %Q_north_cut_off=111x111 double plot(time_north_sec,Q_north_cut_off(:,1)*1...

3 years ago | 1 answer | 0

Question

shaping matrix w.r.t. the array

for example Cyy=[0.1;0.2;0.3;0.4;0.5]; %array how can I create Q matrix w.r.t the Cyy array as follows; Q=[Cyy(1)...

3 years ago | 1 answer | 0

Question

removing rows contain NaN element from 3D array

A(:,:,1) = NaN NaN NaN 1.000000000000000 NaN ...

3 years ago | 3 answers | 0

Question

splitting data w.r.t. sampling interval

x=1:1:20; I need to split x array w.r.t 5 sampling interval as follows; x_5_1=[1 2 3 4 5]; x_5_2=[6 7 8 9 10]; x...

3 years ago | 1 answer | 0

Question

hour to hour minute second conversion

I have an array represents hours, for example; hour=[13.20,15.30,14.46,21]; Is there any matlab function to convert thes...

4 years ago | 2 answers | 0

Question

variable string in warning dialog b

string=0; string=num2str(string); Is it possible to write "number:0" (as 0 is variable) within warning dialog box?

4 years ago | 1 answer | 0

Question

Dimensions of matrices being concatenated are not consistent error for cell2mat

out = '01' '0.5846023560E-002' '405504.0000' '0.9652538155' '-0.7828897534E-008' ...

4 years ago | 1 answer | 0

Question

using regexp for strings with space delimited inside text file

I have a text file whose inside as follows; ID: 01 Eccentricity: 0.5846023560E-002...

4 years ago | 1 answer | 0

Question

extracting values from text files as matrix format

I have a text file whose format as follows; ******** Week 887 almanac for PRN-01 ******** ID: 01...

4 years ago | 2 answers | 0

Question

creating legend with only string

x=rand(10,1); h_x=histfit(x); title('error'); xlabel('north (cm)') ylabel('Number of Measurement') mean_x=mean...

4 years ago | 1 answer | 0

Question

creating multi-line title with variable values

doy=100; %double igs=abcd; %string title({'ERROR (m)';'doy:';'igs:'}) How can I write "doy" variable (100) and "igs"...

4 years ago | 1 answer | 0

Question

matrix row/column augmentation

a=100; How can I create a matrix whose columns and rows contain of 20 times 100?

4 years ago | 1 answer | 0