Domanda


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

circa 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 12 anni fa | 1 risposta | 0

1

risposta

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

oltre 12 anni fa | 0

Domanda


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

oltre 12 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 12 anni fa | 2 risposte | 1

2

risposte

Domanda


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

oltre 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 12 anni fa | 1 risposta | 1

1

risposta

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

oltre 12 anni fa | 0

Domanda


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

oltre 12 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 12 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 12 anni fa | 3 risposte | 0

3

risposte

Domanda


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

oltre 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 12 anni fa | 2 risposte | 2

2

risposte

Domanda


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

oltre 12 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 12 anni fa | 3 risposte | 1

3

risposte

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 13 anni fa | 2 risposte | 0

2

risposte

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 13 anni fa | 1 risposta | 0

1

risposta

Carica altro