Community Profile

edward kabanyas


156 total contributions since 2008

Contact

Contributions in
View by

Posted


Convert UTC to Local Time
Hi All; I wan to convert UTC to Local Time based on the longitude and latitude positions. I found the following link for GMT: h...

2 months ago | 312 views

Posted


polyfit return complex number
Hi all.. I am using p = polyfit( x , y , 1), to calculate the coefficient of linear regression (y =Ax + b). The polyfit functio...

7 months ago | 557 views

Responded


Re: Read Unstructured Data
Sorry, a typo error, it must be: datan{iy}=str2num(data{iy});

7 months ago | 1151 views

Responded


Re: Read Unstructured Data
Finally, I read the data as follow: c=char(textread('datatest.txt','%s','delimiter','\n','whitespace','')); n1 =4; for i =1:1:3...

7 months ago | 1151 views

Responded


Re: Read Unstructured Data
Hi dpb ! Sorry, I don't understand well what you mean. Could give a simple example?

7 months ago | 1151 views

Responded


Re: Read Unstructured Data
Hi dpb ! Thanks for reply. I have tried other option, however, the result is also not so good: clear all fid = fopen('datatest...

7 months ago | 1151 views

Posted


Read Unstructured Data
To make the data is understandable, I share the sample of data at the following link: https://drive.google.com/file/d/0B8wZRYph...

7 months ago | 1151 views

Posted


Read Unstructured Data
I think the problem is the last coulumn has 3 row with non empty value, on the other hand the second column has only one row wit...

7 months ago | 1151 views

Posted


Read Unstructured Data
Hi all! I am reading the following data: N50 0.0058-0.0026-0.0018 0.0119 0.0441 0.0020-0.0795 N51 6.4e-4 0.0043 0....

7 months ago | 1151 views

Responded


Re: Combining Integer and Noninteger Data but keep each data type
Thanks james, problem is (for example) after combining we need to save the merged data into an output file such as ascii file. C...

2 years ago | 1148 views

Posted


Combining Integer and Noninteger Data but keep each data type
Hi ! I want to combine Integer and Noninteger Data, but I need to keep type of each data, for example: A = [int32(1000000) sin...

2 years ago | 1148 views

Responded


Re: Setting Ytick and Xtick for Geoshow plot
sorry the last code is:

2 years ago | 4430 views

Posted


Setting Ytick and Xtick for Geoshow plot
Dear Matlab users I want to set the YTick and XTick for my geoshow plot through the following code: axesm('Frame','on', 'MapPr...

2 years ago | 4430 views

Posted


Simple way to Grid Swath data
Hi all Matlab users !; I'am reading TRMM2A12 data which is swath data in Latitude: 38°S - 38°N and Longitude:180°W - 180°E. Cu...

3 years ago | 1024 views

Posted


restructure the data
Hi all, I need to read the following data, as example: 10-Apr-2004 00:00:00 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0....

4 years ago | 1330 views

Posted


crop a matrix in diagonal direction
Hi all, I would like to crop a matrix in certain direction, for example diagonal. Suppose I have a matrix in lon-latitude spac...

4 years ago | 2007 views

Posted


plot legend with string and non-string value
Hi all, I have a simple question about defining legend for my plot. For example, I plot simply my data as: h = plot(x1, y1, 'o...

4 years ago | 3025 views

Responded


Re: Read tab delimited files with header file
TideMan, Thanks for your reply. Your solution is very nice, it works. However, suppose I have many lines data in a file as bel...

4 years ago | 7615 views

Posted


Read tab delimited files with header file
For the second type (separated with ';'), I try as follow: fmt=repmat(';',1,1039); data = tdfread(fname1,fmt); However, becau...

4 years ago | 7615 views

Posted


Read tab delimited files with header file
Dear all; I have two types of tab delimited files, first separated with ' ' or 'space' and ';' or 'semi'. All files are in CSV...

4 years ago | 7615 views

Responded


Re: insert new value to matrix
Roger, Thanks for nice suggestion. I have used looping procedure so far, but for sure I will use your code to make the code sho...

4 years ago | 4379 views

Responded


Re: Making the code faster
Dear all; Thanks for nice suggestion. I have used the solution from Roger Stafford, thanks again. Edward

4 years ago | 2677 views

Posted


insert new value to matrix
Dear all; Suppose we have a matrix A as: A = [1 11 1 8 100 100 1 11 1 8 100 100 1 11 1 9 100 100 1 11 1 9 100 100 1 11 1 12 1...

4 years ago | 4379 views

Posted


Making the code faster
Dear All; I have 3 loops in my code that make my program very slow. Probably you have some options to reduce the loop. %1st l...

4 years ago | 2677 views

Responded


Re: using textread
Dear Tideman; I found that your texscan only possible if the data structure is uniform. In my case, some lines of the data is ...

4 years ago | 1789 views

Responded


Re: trapz function for Non-uniform Intervals
Dear Torsten; Thanks for your reply. 1. The method you implemented using looping is _not_ the trapezoidal rule. It is summatio...

4 years ago | 2207 views

Responded


Re: trapz function for Non-uniform Intervals
Hi all, I have used trapz function for uniform interval so far and now I want to use it for non-uniform interval. It seems for ...

4 years ago | 2207 views

Posted


trapz function for Non-uniform Intervals
Hi all, I have used trapz function for uniform interval so far and now I want to use it for non-uniform interval. It seems for ...

4 years ago | 2207 views

Responded


Re: using textread
Tideman; Thanks for your reply. Great, it works very well. Thanks again. Edward

4 years ago | 1789 views

Posted


using textread
Hi all I read the data containing string as follow: [Par1]= textread(fname1, '%*s %f %*f %*f %*f %*f %*f %*f %*f %*f %*f %*f %...

4 years ago | 1789 views

Load more