Question


deleting nan rows in a matrix
Hi, is there a simple method to delete the rows in which there is a nan in a matrix? I wrote the codes this way: [x1,y1]=fin...

12 years ago | 2 answers | 0

2

answers

Question


converting date to matlab date
Hi, I have a date 20100815 that I want to convert to a matlab serial date. I tried datenum(20100815,'yyyymmdd') but i recei...

12 years ago | 1 answer | 0

1

answer

Question


sorting a matrix according to another matrix
Hi, I have a 2x200000 matrix A where the 2nd column is an ID column.Then I have another 6x200000 matrix B in which also the f...

12 years ago | 1 answer | 0

1

answer

Question


Last non nan observation
Hi, I have a matrix and I want to find in each column the last non nan observation. Is there a neat way of doing it quickly? ...

12 years ago | 2 answers | 0

2

answers

Question


extracting a number from a cell
Hi, I have a vector where each cell has the following format: OHN HANCOCK LF.IN. 2004 5.32% 15/04/14 INDXLK. A...

12 years ago | 1 answer | 0

1

answer

Question


finding a change in a matrix
Hi, I have a matrix in which each column is usually constant but sometimes the value changes. Is there a way to figure out wh...

12 years ago | 1 answer | 0

1

answer

Question


Matching two numbers using only 2 decimal points
Hi, I have 2 numbers that I want to match in my program and if these don't match I want to receive an error message. The two ...

12 years ago | 2 answers | 0

2

answers

Question


find structure
I have 2 structure vectors A and B. I want to find the files in A that are not in B I used x=find(~ismember(A,B)); I received...

12 years ago | 1 answer | 0

1

answer

Answered
A time killing loop
I changed the names of the variables so that they can appear in a readable format and I cut my huge data to a very small sample ...

12 years ago | 0

Question


A time killing loop
Hi, I have a loop which is taking ages. I am wondering if someone can make it more efficient. %% x1 is a vector of date rows...

12 years ago | 3 answers | 0

3

answers

Question


renaming mat and subdirectories
Thousands of files and subdirectories contain as part of their names a wrong name "Naic" that I want to change to "Trace". Is it...

12 years ago | 2 answers | 0

2

answers

Question


filling nans between two values
Hi, I have matrices in which I want to fill the nans with the last available number. for example: A=[ 1 nan;nan 3;nan 2;4 na...

12 years ago | 2 answers | 0

2

answers

Question


Counting the non nan observations in a matrix by row
Hi, I have a matrix for which I want to compute the number of non-nan observations for each row without running a loop. is th...

12 years ago | 2 answers | 1

2

answers

Question


last transaction time
Hi, I have vector A of prices and cell array B of time of the transaction that has the following format 12:00:53 ; 13:07:52 e...

12 years ago | 1 answer | 0

1

answer

Question


ismember error
Hi, x0=find(ismember(A,B)==1) is giving me error ??? Error using ==> cell.ismember at 28 Input must be cell arrays of strin...

12 years ago | 2 answers | 0

2

answers

Question


extracting digits from a number
Hi, I have a column of numbers with the following format: 12345678 I want to extract digits 56 and digits 78 . in a way si...

12 years ago | 1 answer | 1

1

answer

Answered
Modifying a string
that sounds good but how can i figure out how many zeros to add. c in your example consists of 4 characters but in my case it co...

12 years ago | 0

Question


Modifying a string
Hi, I have a cell array where in each cell I have an alpha numeric number of IDs. I want to adjust this array in a way that if ...

12 years ago | 3 answers | 0

3

answers

Question


finding files in a directory
Hi, I have text files that start with a1 , a2,a3b,a4b .. I was using the following loop to find the files in the directory t...

12 years ago | 2 answers | 0

2

answers

Question


Matlab report generator-Page break
Hi, I am using report table generator to print a report. One of my tables has a a row on the next page. I am wondering how to...

12 years ago | 1 answer | 0

1

answer

Question


Loop that I am trying to get rid off
To follow up on my previous thread regarding a very time consuming routine, the main source of slowness I believe is the followi...

12 years ago | 3 answers | 0

3

answers

Question


Time to run a program
Hi, I have a program running since yesterday. I am wondering if there is a way to test and approximate how much time a progra...

12 years ago | 1 answer | 0

1

answer

Question


number of non nan observations
Hi, I have a matrix for which i need for each row to compute the number of non nan observations . such routine is occurring fre...

12 years ago | 2 answers | 2

2

answers

Question


out of memory error
I am facing a continuous out of memory error and I am wondering if these codes can be modified to avoid it:where RG,PC,and Acr a...

12 years ago | 1 answer | 0

1

answer

Question


converting yyyymmdd date to matlab date number
I have a column of dates that have the following format: 19940127 how can i get a matlab number that corresponds to 01/27/1994...

12 years ago | 3 answers | 1

3

answers

Question


replacing part of a string
Hi, I have a column with cells that have the following format: US313384RJ03(GP) I want to replace "US" by 1032 and delete...

12 years ago | 1 answer | 0

1

answer

Question


Splitting an excel file using matlab
Hi, I have a 900,000 row excel file that I want to split to 900 files. I am wondering if i can do this with matlab. the conte...

13 years ago | 2 answers | 0

2

answers

Question


changing the name of a variable
Hi, I know that what I am asking for is not recommended but I need it. I have a loop and i want to change the name of the var...

13 years ago | 2 answers | 0

2

answers

Question


Regression Diagnostics
is anyone aware of a toolbox that deals with regression diagnostics? i want to test for every single problem that I might face i...

13 years ago | 1 answer | 0

1

answer

Question


sprintf inputs
Hi, I am writing a function to determine the shape of a table I want to obtain where one of the inputs in the function is n,...

13 years ago | 1 answer | 0

1

answer

Load more