Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 14 ans il y a | 1

Réponse apportée
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 ...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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.

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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 ...

presque 14 ans il y a | 1

Réponse apportée
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...

presque 14 ans il y a | 2

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

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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:...

presque 14 ans il y a | 0

Réponse apportée
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 ...

presque 14 ans il y a | 1

| A accepté

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

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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 ...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

| A accepté

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

presque 14 ans il y a | 4

| A accepté

Réponse apportée
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 = []; ...

presque 14 ans il y a | 5

Réponse apportée
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...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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). ...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 0

Réponse apportée
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 ...

presque 14 ans il y a | 0

Réponse apportée
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...

presque 14 ans il y a | 1

Réponse apportée
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...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 14 ans il y a | 0

| A accepté

Réponse apportée
[SOLVED] compile mex with blas under windows
Did you not try: mex -v sparseQPsetup.c -lmwblas

presque 14 ans il y a | 0

Charger plus