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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

| akzeptiert

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

fast 14 Jahre vor | 1

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

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

fast 14 Jahre vor | 2

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

| akzeptiert

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 4

| akzeptiert

Beantwortet
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 = []; ...

fast 14 Jahre vor | 5

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 0

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

fast 14 Jahre vor | 1

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

| akzeptiert

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

fast 14 Jahre vor | 0

Mehr laden