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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 4

| akzeptiert

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

fast 11 Jahre vor | 1

| akzeptiert

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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 0

| akzeptiert

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

fast 11 Jahre vor | 8

| akzeptiert

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

fast 11 Jahre vor | 1

| akzeptiert

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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 1

| akzeptiert

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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 5

| akzeptiert

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

fast 11 Jahre vor | 1

| akzeptiert

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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 0

| akzeptiert

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

fast 11 Jahre vor | 1

| akzeptiert

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

fast 11 Jahre vor | 0

| akzeptiert

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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 1

| akzeptiert

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

fast 11 Jahre vor | 0

| akzeptiert

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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 0

| akzeptiert

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

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
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

fast 11 Jahre vor | 0

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

fast 11 Jahre vor | 0

| akzeptiert

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

fast 11 Jahre vor | 1

| akzeptiert

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

fast 11 Jahre vor | 0

Mehr laden