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

mer än 8 år ago | 1 answer | 0

1

answer

Question


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

mer än 8 år ago | 1 answer | 0

1

answer

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

mer än 8 år ago | 1 answer | 0

1

answer

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

mer än 8 år ago | 2 answers | 0

2

answers

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'};{...

mer än 8 år ago | 1 answer | 0

1

answer

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

mer än 8 år ago | 2 answers | 0

2

answers

Question


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

mer än 8 år ago | 2 answers | 0

2

answers

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

mer än 8 år ago | 1 answer | 0

1

answer

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

nästan 9 år ago | 1 answer | 0

1

answer

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

nästan 9 år ago | 1 answer | 0

1

answer

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

nästan 9 år ago | 1 answer | 0

1

answer

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

nästan 9 år ago | 1 answer | 0

1

answer

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

nästan 9 år ago | 1 answer | 0

1

answer

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

nästan 9 år ago | 2 answers | 0

2

answers

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

nästan 9 år ago | 1 answer | 0

1

answer

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

nästan 9 år ago | 1 answer | 0

1

answer

Question


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

nästan 9 år ago | 1 answer | 0

1

answer

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

ungefär 9 år ago | 1 answer | 0

1

answer

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

ungefär 9 år ago | 1 answer | 0

1

answer

Question


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

ungefär 9 år ago | 1 answer | 0

1

answer

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

ungefär 9 år ago | 1 answer | 0

1

answer

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

ungefär 9 år ago | 1 answer | 0

1

answer

Question


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

mer än 9 år ago | 0 answers | 0

0

answers

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]

mer än 9 år ago | 1 answer | 1

1

answer

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

mer än 9 år ago | 1 answer | 0

1

answer

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

mer än 9 år ago | 2 answers | 0

2

answers

Question


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

mer än 9 år ago | 1 answer | 0

1

answer

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

mer än 9 år ago | 1 answer | 0

1

answer

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

mer än 9 år ago | 2 answers | 0

2

answers

Question


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

mer än 9 år ago | 1 answer | 0

1

answer

Load more