Question

array operation for merging two arrays
data_1=[10;20;30;40]; data_2=[40;10]; data_3=[11;12]; for i=1:numel(data_2) idx(i)=find(data_2(i)==data_1); end I...

meer dan 3 jaar ago | 1 answer | 0

### 1

Question

adding rows to array with order
data=[1.0452;1.0645;1.1027;1]; fixed_data=[1;1.0452]; for i=1:numel(fixed_data) idx(i)=find(fixed_data(i)==data);...

meer dan 3 jaar ago | 2 answers | 0

### 2

Question

removing 0 from cellarray
a=[{'0'};{'0'};{'0'};{'b10'};{'01'};{'p10'}]; %cell How can I remove all {'0'} from a array. a_removed_zero=[{'b10'};{...

meer dan 3 jaar ago | 1 answer | 0

### 1

Question

How I can add marker names with plot function?
station_id={'abcd','brmu','vcfd','mnnn'}; lon = [ 2.3349 12.878 8.6649 13.066 ]; lat = [ 48.835 49.1442 50.0906 52.3792 ...

meer dan 3 jaar ago | 2 answers | 0

### 2

Question

merging two cell type matrix
start_id=[{'p1'};{'p2'};{'p1'};{'p1'};{'p3'}]; %cell finish_id=[{'p2'};{'p3'};{'p3'};{'p4'};{'p4'}]; %cell points_id=[...

meer dan 3 jaar ago | 2 answers | 0

### 2

Question

constructing matrix with loop
I have 3 matrix consist of numeric values as follows; XY_j=[Xj_ref, Yj_ref]; %consists of 2 column and 40 rows (40x2) X...

meer dan 3 jaar ago | 1 answer | 0

### 1

Question

placing text outside the axis in the figure
figure(1); hold on scatter(1, 1, 100, 'k', 'o') scatter(1, 2, 100, 'k', '+') h = legend('circle', 'Plus', 'Location'...

bijna 4 jaar ago | 1 answer | 0

### 1

Question

placing text on the figure while using scatter function
figure(1); hold on scatter(1, 1, 100, 'k', 'o') scatter(1, 2, 100, 'k', '+') h = legend('SV1-SV7', 'Plus', 'Location...

bijna 4 jaar ago | 1 answer | 0

### 1

Question

setting incremental of y axis while plotting using scatter function
I have several vectors for plotting using scatter function. Boundary of X axis is constant like [0:24] so I can set for this bou...

bijna 4 jaar ago | 1 answer | 0

### 1

Question

using scatter function with distinguishing 32 scatter plots in 1 figure
I have 32 vectors and another 32 vectors which are need to be plotted with scatter function against to each other. How can I use...

bijna 4 jaar ago | 1 answer | 0

### 1

Question

problem with writing codes in big line numbers
I'm experiencing writing difficulties in big line numbers (apprx 40 000) in editor page. There is a significant latency happenin...

bijna 4 jaar ago | 1 answer | 0

### 1

Question

using regexp for space delimited strings in text file.
I need to extract repeated strings' lines from the attached text file. For example there are 2 lines which start with "P 1" (t...

bijna 4 jaar ago | 2 answers | 0

### 2

Question

extracting repeated strings line from text file
I need to extract repeated strings' lines from the attached text file. For example there are 2 lines which start with "PG01" str...

bijna 4 jaar ago | 1 answer | 0

### 1

Question

Factory properties can only be queried, not set, error
for example I want to change factoryUicontrolFontSize with this command; set(groot,'factoryUicontrolFontSize',10) When I...

bijna 4 jaar ago | 1 answer | 0

### 1

Question

adjusting dialog box input font size
chars={'X0', 'Y0', 'Z0'}; start='coordinates?'; num_lines=1; value={'0','0','0'}; coordinates=inputdlg(chars,sta...

bijna 4 jaar ago | 1 answer | 0

### 1

Question

separating day month year from string
%I have a text file with one row and several hundreds columns. The text file includes string values like; 01.01.2013 02....

ongeveer 4 jaar ago | 1 answer | 0

### 1

Question

setting y axis data in figure
time=[0:2:24]; data=[23.3;21.68;27.47;41.98;60.13;76.10;75.13;66.050;54.027;32.78;24.62;22.67;23.38]; figure; ...

ongeveer 4 jaar ago | 1 answer | 0

### 1

Question

determine the limit of txt file while using regexp
content = fileread( 'trial.txt' ) ; matches = regexp( content, '[-\d\.]+(?=-\d)', 'match' ) ; data = str2double( matc...

ongeveer 4 jaar ago | 1 answer | 0

### 1

Question

extracting specific part from txt file
I need to create column from attached txt file as follows; a=[87.5;85;82.5;80]; %for each LAT/LON1/LON2/DLON/H %The txt...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

four points grid interpolation function
lat1=87.5; lat2=85; lon1=-180; lon2=-175; coordinates of point_1= [lat2,lon2]; coordinates of point_2=[lat...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

reading specific parts of txt file
[FileName,PathName] = uigetfile('*txt','Select the ionex file'); if FileName ~= 0 completename = fullfile(PathName, Fi...

meer dan 4 jaar ago | 0 answers | 0

### 0

Question

removing zeros from column
A=[1;2;2;0;0;3;0;0]; %I need to remove all "0" in A matrix then I need to create a matrix without "0" like; [1;2;2;3]

meer dan 4 jaar ago | 1 answer | 1

### 1

Question

retrieving ftp data with loop
%HOST=garner.ucsd.edu %USER=anonymous %PASSW=12345 %data path=rinex/relevant_year/relevant_day/xxxx (data) %in h...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

finding specific values' rows numbers in an array
a=[11;4;3;99;5;6;7]; b=[4;7]; I need to find which rows in a matrix include 4,7. The answer must be 2th and 7th rows w.r...

meer dan 4 jaar ago | 2 answers | 0

### 2

Question

using return command before codes
while (criterion for loop) iteration=iteration+1; %codes to perform if iteration==200 errordlg('iteration cannot...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

matrix columns and rows manipulating with loop
n=6; %which is variable, the number of vector's dimension. i=1:(n-3); u=cos(i-3); u=u(:); jn=(2*cos(u(i))); % ...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

help for matrix manipulation with loop
%for n=i (i is variable, taken 6 this example), I need to create the below matrix % i numbers rows and (i-3) numbers columns ne...

meer dan 4 jaar ago | 2 answers | 0

### 2

Question

Error while evaluating uicontrol Callback
I created pushbutton in GUI; % --- Executes on button press in pushbutton1. function pushbutton1_Callback(hObject, event...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

scatter function to set different color for particular point.
ids={'AKHR','AKSR','CIHA'}; x=[38.36927164;38.37038981;39.0791021]; y=[31.42974208;33.99814907;33.06536336]; figure(...

meer dan 4 jaar ago | 1 answer | 0

### 1

Question

vertical alignment with different size character with fprintf.
C = {'p.1001',100.500,250.350,;'102',110.550,255.220;'m285',115.210,266.333}; fileID = fopen('celldata.dat','w'); format...

meer dan 4 jaar ago | 1 answer | 0