Andy


2011년부터 활동

Followers: 0   Following: 0

메시지

통계학

  • Thankful Level 4

배지 보기

Feeds

보기 기준

질문


Sorting NaN
say if i have a matrix a: a=[1 2 3;4 5 6;7 8 9;NaN NaN NaN] i want to sort this in descending order, so i use sort(a,1...

12년 초과 전 | 답변 수: 4 | 0

4

답변

질문


how to use find command to find numbers?
so say if i have a=[1;2;3;4;5;6;7;8;9] and i want to find which position the number 5 is. so i tried to use po...

12년 초과 전 | 답변 수: 1 | 1

1

답변

질문


Changing enable field in GUI property inspector
How to i change the enable field in the property ispector? I have a radio button that when pressed, i want it to disable a te...

12년 초과 전 | 답변 수: 1 | 1

1

답변

질문


finding slope/intercept/std.deviation of replicates
how do i find the slope and intercept of replicates? so for each x-value i have, there would be more than 1 y-value (e.g. 6 y va...

거의 13년 전 | 답변 수: 1 | 1

1

답변

질문


polyfit question
I used polyfit like this: p=polyfit(avg_Y,x,1) where both avg_Y, and x are 12 by 1 matrix. my purpose is try to find a bes...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


Need to load a file into a variable
This is what i have: f = load (filename) where filename is just a string of characters (e.g. load_me.mat) when i load t...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


popupmenu in GUI
I made a popupmenu in GUI, but how do i populate the popup with choices? thanks

거의 13년 전 | 답변 수: 3 | 0

3

답변

질문


writing maxtrix into a txt file
I am trying to write a maxtrix into a txt file which contains other information, so i am wondering how i would go about this? co...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


Writing text file
If i have a variable, say time=1000, and i want to write this into a txt file, how do i do that? this is what i have tried: ...

거의 13년 전 | 답변 수: 2 | 0

2

답변

질문


Efficiency fix
Hi, another efficiency fix needed. this one runs over 20 second everytime. would be a big help if that nested loop could be shor...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


Efficiency help
hi, i need some help in improving this section of code. it takes over 20 seconds to run. Because i have over 150 samples to run...

거의 13년 전 | 답변 수: 2 | 0

2

답변

질문


variable selection problem
I have a matrix aaa, which has the values 0 1 2 3 4 5 6 7 8 in one column. say i want to save from 2~8 f...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


Suggestions for a non-zero counter
I have a 16000X271 matrix, and its mostly zeros, with maybe 1000 non-zero numbers. I need to find out how many non-zero elements...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


Efficiency help 2
for q = 1:length(maxtab2) for r = 1: length(maxtab2{q}) for s = 1: length(replacewith) if abs (maxtab2{...

거의 13년 전 | 답변 수: 2 | 0

2

답변

질문


Efficiency help
Hi, i need some more help with effeciency. This following code is running very slowly (took over 800 seconds for one of my data ...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


Replace nested loops?
Is it possible to replace 4 for loops in the form: for if for for if for if ...

거의 13년 전 | 답변 수: 1 | 0

1

답변

질문


Line plotting
for yy = 1:length(overlap_peaks2) x=overlap_peaks2(yy); y=1:200000:1000000; hold on; plot(overlap_p...

대략 13년 전 | 답변 수: 2 | 0

2

답변

질문


Extract from a list of cell
here is my code: peak_loc = cell(216,1) peak_loc{3} = [596,620, 697] is it possible to extract only the 596 from the ...

대략 13년 전 | 답변 수: 1 | 0

1

답변

질문


graphing colors
this is the code i have: plot(all_conflims_mult, 'linestyle', '--', 'color', [0.00 0.00 1.00], 'linewidth', thick) instead...

대략 13년 전 | 답변 수: 3 | 0

3

답변

질문


how to use uiopen
I was trying to do a=uiopen but it doesnt work. i want a variable to be equal to whatever i open. In this case, the file i...

대략 13년 전 | 답변 수: 2 | 0

2

답변

질문


removing an variable from a list of strings
so i have this list of string called str, it says <1X482 cell> in matlab. How can i remove any arbitrary variable from that list...

대략 13년 전 | 답변 수: 1 | 0

1

답변

답변 있음
loop question for listdlg
never mind, i figured out what i did wrong

대략 13년 전 | 0

| 수락됨

질문


loop question for listdlg
for aaa = 1:3 cd(rootdir) d = dir; str = {d.name}; [s,v] = listdlg('PromptString','Select a file:',... ...

대략 13년 전 | 답변 수: 1 | 0

1

답변

질문


how to use listdlg
How do i use listdlg? I read the documentation, it said listdlg('ListString',S), what is ListString and what is S? i wis...

대략 13년 전 | 답변 수: 3 | 0

3

답변

질문


convert from cell to a number?
so i have this code, for bbb = 1:counter countermatrix{bbb} = 0; end when i compare countermatrix{1} to 0, it gave me...

대략 13년 전 | 답변 수: 1 | 0

1

답변

질문


cell problem
this is my code: zeromatrix = zero(size(vec), 1) mean(aaa) = zeromatrix where vec is 2 million X 1 mean is a 2 by 1 cel...

대략 13년 전 | 답변 수: 1 | 0

1

답변

질문


radiobutton commands
Hi: I have 2 radiobutton, and a pushbutton, which when pushed, i want it ti tell me which of the radiobuttons are selected. I a...

대략 13년 전 | 답변 수: 1 | 0

1

답변

질문


Integer check
How can i do an integer check in matlab? Say i have a number, a = 1.5, how do i check if it is integer or not? i want to use an ...

대략 13년 전 | 답변 수: 5 | 1

5

답변

질문


How do i check for empty cells within a list
How do i check for empty cells within list? I have a list of cells, namelist, and it has 12 values, i need to check if some of t...

대략 13년 전 | 답변 수: 2 | 3

2

답변

질문


button to activate textboxes in GUI
Hi: How can i make it so that when i click on a button, it gathers information in textbox(s)? I have get(hObject, 'string') for...

대략 13년 전 | 답변 수: 2 | 0

2

답변

더 보기