已回答
GUI, workspace
You could use |uiputfile| to select a file name to be created: doc uiputfile (If you want to get a file to load, use |ui...

14 years 前 | 0

已回答
array of images
Where exactly are you stuck? You've been posting enough questions here that I would assume you know how to write a loop. T...

14 years 前 | 0

已回答
loadlibrary and 64bit shared lib (DLL) on 64bit windows 7
It definitely doesn't like |mxArray|, so I'd say that you are including files in the wrong order. In the source files that show...

14 years 前 | 1

| 已接受

已回答
Selecting values in an array
Logical indexing: xfiltered = x( x(:,1)==1 & x(:,2)>0, : ); I'm sure you can work out the variations on this. You can...

14 years 前 | 1

已回答
car license plate character recognition using neural network
I have not done plate recognition, and have only dabbled in neural networks, but I would expect that you need to translate your ...

14 years 前 | 0

| 已接受

已回答
Finding 3 consecutive zero values row by row in an image.
Simplest (and rather inefficient) approach: for y = 1:size(img,1) blacks = 0; for x = 1:size(img,2) if all...

14 years 前 | 0

已回答
Store a double value into the cell array element
You'd need to use |eval|, but there's almost always a good reason not to do what you're trying to do.

14 years 前 | 0

| 已接受

已回答
Disabling the case-sensitive mismatch error message
How could it be a warning? It's an error. Case-sensitivity is a feature of the language. You can't change the language. If...

14 years 前 | 0

已回答
For cycle to create multiple matrixes
This conceptually is like turning each row of the 35x35 identity into a 5x7 matrix. H = reshape(eye(35), 5, 7, 35); But ...

14 years 前 | 1

已回答
interpolate NaNs only if less than 4 consecutive NaNs
Okay, here's a fun way to find the long sequences. You could interpolate the entire lot and then set the long sequences back to...

14 years 前 | 2

已回答
Matlab Compiling - With deploytool / mcc
Does the target machine have the relevant Visual C++ Redistributables installed? This kind of crash-without-helpful-message is ...

14 years 前 | 0

已回答
this script doesn't seem to work properly any more
A totally random aside... This script is also slow? If you're repeating that switch statement thousands of times, why not pu...

14 years 前 | 0

已回答
multiplication of equevalant element of three cells by a predetermined vector
I seem to give a lot of answers that use |arrayfun|, and I don't want to be cliché, but it seems you need it here to pull out th...

14 years 前 | 0

已回答
dismember or intersect
You can still use ismember on the 3rd column: memb3 = ismember(a(:,3),b(:,3)); And a dirty little number on the other tw...

14 years 前 | 0

已回答
How to add a function to MATLAB root
Just keep it in your own 'handy stuff' directory or whatever, and add that to MatLab's path. File -> Set Path... Don't f...

14 years 前 | 0

| 已接受

已回答
Ignoring NaN in a mean only if there is a singal NaN
Compute the mean with |nanmean| as usual, and then check for multiple NaNs: You can count the NaN values in an array like so:...

14 years 前 | 0

已回答
Can I use stringmatch, if I am looking for a match at the end of a string??
You should use regular expressions for this. doc regexp They are far more powerful than simple string matching, but you ...

14 years 前 | 1

| 已接受

已回答
fill empty spaces in a cell array
Here's a clunky solution: function [A] = FillEmptyRows( A ) while 1 emptyCells = cellfun(@(x) isempty...

14 years 前 | 0

| 已接受

已回答
Can I use Simulink fixed-point advisor to translate C code ( with float variable ) to fixed-point code ( only integers ) ??
Are you supposed to use MatLab for this? Fixed-point in C is not hard. You just exploit bit-shifting, which is built into the ...

14 years 前 | 0

已回答
Array weirdness
The call to |*length*| returns the largest dimension, which in your case is 17. So the first time, you write 1 row, then you wr...

14 years 前 | 0

| 已接受

已回答
vectorizing four nested for loops
Try this: [i,j] = ndgrid(1:n*n); r = reshape(a(i)+a(j), [n n n n]);

14 years 前 | 4

| 已接受

已回答
Saving multiple figures all at once
You'll want to do it in a loop. First, make sure you have stored the handles to your figures in a vector. figures = []; ...

14 years 前 | 5

已回答
how to store and access the array?
There's lots of ways to do this. Here is some useful stuff to read: Exporting to text data files: <http://www.mathworks.c...

14 years 前 | 0

| 已接受

已回答
UDP Loopback Test in Real-Time Windows Target
How much is the delay? Typical round-trip for a UDP packet on the loopback is around 100 microseconds (for a ping and reply). ...

14 years 前 | 0

已回答
RLC circuit impulse response
Are you expecting |y| to be a vector, or a matrix? When you assign to |y(k+2)|, it needs to be a single value. But on the ri...

14 years 前 | 0

已回答
Neural Network help
You are 'testing' your net with exactly the same data that trained it. Of course you will get your targets back out. You need ...

14 years 前 | 0

已回答
Subscript indices must either be real positive integers or logicals
How can |fourier| be a function when you just defined it as a persistent variable in your |mycon| function? I suspect you may b...

14 years 前 | 1

已回答
math Legendre problem
That's almost right, but wherever you had |p(n)| etc, you shouldn't adjust |n|. You should only have subtracted 1 from the inst...

14 years 前 | 0

| 已接受

已回答
I want to plot X & Y data for different Time step.
How about this: hold off; scatter( x1, y1, 'bo' ); % Blue circles hold on; scatter( x2, y2, 'gv' ); % Green tria...

14 years 前 | 0

| 已接受

已回答
[SOLVED] compile mex with blas under windows
Did you not try: mex -v sparseQPsetup.c -lmwblas

14 years 前 | 0

加载更多