Respondida
Compiled GUI not appearing
What Walter said. function makeAtestGUI() T = testGUI(); uiwait(T.h); end Now compile this.

casi 11 años hace | 0

Respondida
How do I install a .mltbx file from the filesharing site into R2015a?
Navigate to the folder with the toolbox from within MATLAB and double click on the file, this will pull up a dialog.

casi 11 años hace | 4

| aceptada

Respondida
How to use Permute?
reshape(A,size(A,1),12,4)

casi 11 años hace | 1

| aceptada

Respondida
Find the endpoints of 3D skeleton
Convolve the 3d skeleton using |convn()| with a rubik's cube of ones. Anywhere in this new image that is equal to one or two sh...

casi 11 años hace | 0

Respondida
Import tool in r2015a not working like r2014a for excel spreadsheet import as matrix
I think this might be a bug in reading files with more than a certain number of lines from Excel (5k or 10k, I forget) in the ge...

casi 11 años hace | 0

| aceptada

Respondida
Saving .mat files in a 'for' loop
save(['path/X_' num2str(j) '.mat'],'X')

casi 11 años hace | 8

| aceptada

Respondida
preallocation of structure array for MATLAB coder
picturesque = struct('im1',zeros(sx,sy,sz),'im2', zeros(sx,sy,sz)); picturesque = repmat(picturesque,1,nlevels) Perhaps?

casi 11 años hace | 1

| aceptada

Respondida
Cannot find where I am hitting recursion limit
The issue is indeed from calling |phi(k)| function out = phi(k) out = phi(k); end Calls itself infinitely...

casi 11 años hace | 0

Respondida
How to collapse rows of a table?
T = table({'NFLX';'NFLX';'AAPL'},datetime([2015;2015;2015],[7;7;7],[28;28;28]),[100;101;150] ,'VariableNames',{'Symbol' 'Date'...

casi 11 años hace | 1

| aceptada

Respondida
Question about vision.ShapeInserter, bounding box problem.
Try zooming in/expanding the size of the figure/movie player?

casi 11 años hace | 0

Respondida
How to automatically choose to compute for or parfor loops
You can use this syntax for |parfor| parfor (loopvar = initval:endval, M); statements; end Where _M_ is dynamically dete...

casi 11 años hace | 5

| aceptada

Respondida
Converting a 3D matrix into 2D matrix correctly
feat = reshape(x,size(x,1)*size(x,2),size(x,3))

casi 11 años hace | 1

| aceptada

Respondida
How can I know in a function/script that it is run in Publish mode?
Look at |dbstack|. You could write a function which looks through the stack to see if |publish| was used: function out = i...

casi 11 años hace | 0

Respondida
How can I use image processing functions such as imfindcircles in a simulink matlab function block? I get an error when I use this function.
You could also use an interpreted matlab function block so that Simulink doesn't generate code for it. You'll take a performanc...

casi 11 años hace | 0

Respondida
how to find the largest element if you have an EXTREMELY large data array?
Ahhh! It has nothing to do with size, it has to do with <http://www.mathworks.com/help/releases/R2015a/matlab/matlab_prog/com...

casi 11 años hace | 0

| aceptada

Respondida
Can this silly accumarray for-loop be removed by a vectorization?
A = randi(32280,28); [UA,~,idx] = unique(A(:,1)); [X,Y] = ndgrid(idx, 2:size(A,2)); newcolumns = accumarray([X(:), Y(:)], r...

casi 11 años hace | 1

| aceptada

Respondida
How to write a script to edit another script ?
|doc fprintf| Allows you to write text files.

casi 11 años hace | 0

| aceptada

Respondida
Why intlinprog ignores lb when intcon is on some part of variables?
You need to have ub and lb be the same size as f, otherwise it only applies to however many elements are in it, in your case one...

casi 11 años hace | 0

Respondida
Is there a way of making a scatter plot where all the points are different markers and colours?
<http://blogs.mathworks.com/pick/2015/08/07/high-dimensional-visualization-with-bubbleplot/>

casi 11 años hace | 0

Respondida
How to define new methods on existing matlab classes?
You could create an @cell folder and in it create a plus method. Or you could use |celladd| like Sebastian suggested which is p...

casi 11 años hace | 1

| aceptada

Respondida
How can I get Point Cloud Library Tool into 2013a version?
No, you'll need to upgrade.

casi 11 años hace | 0

| aceptada

Respondida
Importing real time data from matlab workspace into simulink
You could use the Instrument Control Toolbox block set in Simulink: <</matlabcentral/answers/uploaded_files/35290/2015-08-06_...

casi 11 años hace | 0

Respondida
Assign cell array of values to cell array of names
You probably want to go with a |containers.Map| here: M = containers.Map({'A';'B';'C'},1:3) M('A') M('B')

casi 11 años hace | 0

Respondida
What does roots/ eig do exactly?
>>edit roots

casi 11 años hace | 0

| aceptada

Respondida
Why am I getting "Undefined operator '*' for input arguments of type 'cell'." when I run this code?
You use a { which creates a cell array (container). You probably want to use a [ or ( instead. <http://www.mathworks.com/hel...

casi 11 años hace | 0

| aceptada

Respondida
Debugging mapreduce functions in MATLAB
Do you have a: clear all At the top of your script? This clears break points. Replace it with just: clear

casi 11 años hace | 0

Respondida
How to exclude NaN values from evaluation on raster data
x_no_nans = x(~isnan(x))

casi 11 años hace | 0

| aceptada

Respondida
how to find objects with handlevisibility off?
doc findall doc allchild

casi 11 años hace | 1

| aceptada

Respondida
Sum of a signal in simulink
You could also use a unit delay: <</matlabcentral/answers/uploaded_files/35193/2015-08-04_17-16-23.png>>

casi 11 años hace | 0

Cargar más