답변 있음
finding all the packets associated with particular IP address
Man, this is what AWK was built for! But never mind. To do it in MatLab, use regular expressions: packethist = { 1 ...

거의 14년 전 | 2

| 수락됨

답변 있음
How to model temperature distribution over time over a 2 Dimensional laminar with increasing accuracy?
There's a few ways you could do this, and it depends on a number of things about your problem that probably only you know. I ...

거의 14년 전 | 0

답변 있음
compare two splines
Is the stretching uniform? If so you could handle all that (including rotation) as follows: Sample your splines with a set n...

거의 14년 전 | 0

답변 있음
Changing subplot axis label using subplot handle
That's because the value for 'XLabel' is actually a handle to another object. To see its properties, do this: get( get(P1,...

거의 14년 전 | 0

| 수락됨

답변 있음
how to scan the first black pixel of top left on image
If your image data is grayscale or indexed (1 value per pixel), you can do this: [y,x] = find( img == 0, 1 ); If it's RG...

거의 14년 전 | 0

답변 있음
Question about colormap? how to change color from one image?
To detect your yellow, you need to find the relationship between the RGB channels that creates a yellow colour. Now, pure yello...

거의 14년 전 | 0

| 수락됨

답변 있음
GUI question
1. Build your other GUI. 2. Create the button in your main GUI and put code inside its click callback that invokes your new G...

거의 14년 전 | 0

| 수락됨

답변 있음
Randomly accessing a file from a folder using Matlab
I understand your question in two different ways: 1. You want to choose a random file from a specified folder 2. You want ...

거의 14년 전 | 0

| 수락됨

답변 있음
??? Index exceeds matrix dimensions.
The variable |k| is either negative or is larger than the dimensions of one of |a|, |b|, |c|, |d|, or |x|

거의 14년 전 | 0

답변 있음
Ordering rows based on value
Try this: matches = [1,2;1,4;2,5;3,4;3,6;5,6;]; connected = matches(1); while size(matches,1) > 0 [r...

거의 14년 전 | 0

답변 있음
Writing a matlab program that is diagonally dominant? Very confused help please.
Did you solve this in the end? Think about it this way... For each row |r| in your matrix |A|, you want to test that |abs(A(...

거의 14년 전 | 4

| 수락됨

답변 있음
Writing a matlab program to create a matrice column by column?
You need to be a little clearer... Do you mean this? A = [ 1 2 3 4 1 2 3 4 1 2 3 4 ]; Or this? ...

거의 14년 전 | 2

답변 있음
Grouping different time series on the same timescale
This is not very efficient, but is easy if you are in a hurry. Y = 1900:2012; % reference years V = nan( nu...

거의 14년 전 | 0

답변 있음
EDIT:(Getting a Different Error Now: " Index exceeds matrix dimensions".) >>User Inputed Word--> Yields a corresponding number.
Nah... Try this: colors = {'Blue', 'Red', 'Pink', 'Black', 'White'}; values = [12 20 2 15 12]; You can search for th...

거의 14년 전 | 0

답변 있음
How can I identify a pattern of occurrences over multiple days?
Well, what you could say is that a value is in the required set if you subtract the date 4 events ago from the date at the curre...

거의 14년 전 | 0

답변 있음
Max / Min of sparse matrices
Here is a solution for rows (similar for columns)... If you know that every row contains at least one non-zero value, you can...

거의 14년 전 | 0

답변 있음
How to normalize two images which have different lighting conditions?
Histogram normalisation can work quite well in some cases. First, you take a histogram of your reference image (where each bu...

거의 14년 전 | 4

| 수락됨

답변 있음
how to make a video (captured from a camera) fullscreen.
I really would recommend that you add two black lines above and below the images to pad it out to 900 pixels. Is this what you ...

거의 14년 전 | 0

답변 있음
my output is not simplified to one number
Looks like you want: A .* sin(exp(B) - 2) ./ C; Where: A = [3931879, -1862469, 45497457, -18734247, ...]; B = [1...

거의 14년 전 | 2

답변 있음
Max/Min of nonzero rows/cols
When you say 'for every row and column', do you mean a single max and min for the entire matrix? This would do it: nzmin =...

거의 14년 전 | 1

답변 있음
can we use assembly code in matlab
You should probably try writing a MEX function in C, and embed your assembly code in there, or compile separately and link to a ...

거의 14년 전 | 0

| 수락됨

답변 있음
helicopter motion game* using matlab
If your labs have had you moving a rectangle with the mouse, and if this same style of interface is required to move your helico...

거의 14년 전 | 0

답변 있음
Multi mice tracking
Is this actually a MatLab question?? Have a look at this project: <http://cpnmouse.sourceforge.net/>

거의 14년 전 | 0

답변 있음
???error: Assignment has more non-singleton rhs dimensions than non-singleton subscripts.
I think you have a slight misconception about how to initialise your data sets. Start with this: data(x,y,6)=zeros(1,1,1);...

거의 14년 전 | 0

| 수락됨

답변 있음
how to compare two image which should neglect the lighting changes
Try using a threshold. Set a minimum amount of change to denote movement. Anything less than that value is noise. Lip movemen...

거의 14년 전 | 0

답변 있음
How to control number of threads in FFT ?
Don't know if this is any help, but: maxNumCompThreads will be removed in a future release. Please remove any instanc...

거의 14년 전 | 0

답변 있음
Subscripted assignment dimension mismatch
When you reference |BW(:)|, it turns your matrix into a vector. Just do this: IM_s(:,:,i) = BW; Assuming that |IM_s(:,:...

거의 14년 전 | 1

| 수락됨

답변 있음
Optimizing a 'for' loop
It really takes half an hour??? What hardware are you using? Anyway, the biggest improvement on this code is to stop calcula...

거의 14년 전 | 1

| 수락됨

답변 있음
create variable from function input
This makes no sense. If you want your input variables to be called something else, then call them something else in the first p...

거의 14년 전 | 1

답변 있음
'Restart program if error encountered'
Sorry, but I'm gonna be your Mum here! The usual approach is not for your program to die horribly and have to be restarted, but...

거의 14년 전 | 0

더 보기