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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 1

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 1

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

casi 14 años hace | 2

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 1

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 4

| aceptada

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

casi 14 años hace | 5

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 0

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

casi 14 años hace | 1

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

| aceptada

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

casi 14 años hace | 0

Cargar más