Answered
How do I make compiled mex files take precedence over m files when using Matlab Compiler?
Are you adding the MEX files to the CTF with the -a option in |mcc| (or as "Other files" in the app)?

9 years ago | 0

Answered
Unique values in an array, with specific digits
Starting in R2016b this is _much_ easier with the |string| class. x = [1234; 1256; 1334] s = string(x) unique(extractBe...

9 years ago | 0

Answered
Imshow in appdesigner?
The ability to show images is new in R2016b, so you need to be on that release. You use imshow by explicitly parenting to the...

9 years ago | 9

| accepted

Answered
APP DESIGNER 2016a: Sending variables into an App from a script/function
I would have the app call the function that collects the serial data. The serial data collection should be completely independe...

9 years ago | 1

| accepted

Answered
What files are necessary to re-deploy a standalone application with runtime already installed?
If the MATLAB Runtime for R2015b is already installed, then multiple applications (all compiled with 15b), including updates to ...

9 years ago | 0

| accepted

Answered
How can I remove elements divisible by 3,4, and 5 in a vector?
x = 1:50; x([3:3:50,4:4:50,5:5:50]) = []

9 years ago | 1

| accepted

Answered
Automatic update of matlab figure in powerpoint
This can be done easily with the MATLAB Report Generator powerpoint api <https://www.mathworks.com/help/releases/R2016b/rptge...

9 years ago | 0

| accepted

Answered
Function variable -> cftool import data.
function blah=testgetvar(a,b,c) x=1:100; y=x.*a+b.*rand(1,100)+c*ones(1,100); cftool(x,y) keyboard

9 years ago | 0

Answered
Case insensitive enumeration class
You could use a |containers.Map| to use non-MATLAB variable names if you want: mapper = containers.Map('enumclass.A/B','A')...

9 years ago | 1

Answered
How to discretize?
bins = 0:10:100; x = [51,42,43,56,76,54,34,56,78,80] newx = bins(discretize(x,bins))

9 years ago | 0

| accepted

Answered
Removing objects in bw scene that have not appeared in the previous bw scene
Could you use a logical |xor()|. I.e. exclusively in one frame and not the other?

9 years ago | 0

Answered
How do I see how many times a button has been pressed in App Designer?
Add a property to the app and increment it by 1: app.NumberOfTimesButtonHit = 0; In call back app.NumberOfTimexButt...

9 years ago | 4

| accepted

Answered
Use Import's automatic table detection programatically
Have you tried |readtable|?

9 years ago | 0

Answered
parfor supply error (no error with for)
My guess is that parfor is unable to determine what variables it needs due to how you called |load|. Instead call load with an ...

9 years ago | 0

Answered
Matlab & Web Integration
The use case you just described is the whole purpose of Compiler SDK and MATLAB Production Server. <http://www.mathworks.com/...

9 years ago | 1

Answered
Optimization: solving ODE in objective function, how to pass solution to nonlinear constraint function?
Use nested functions: <http://www.mathworks.com/help/releases/R2016a/optim/ug/passing-extra-parameters.html>

9 years ago | 1

| accepted

Answered
Does matlab have a tool to translate code from Spanish to English?
No it does not. This will be a semimanual process unfortunately. Find and replace will be your friend.

9 years ago | 0

Answered
listener on graphics property 'BeingDeleted'
How about just listening for _'ObjectBeingDestroyed'_? addlistener(h,'ObjectBeingDestroyed',@(varargin)(disp('deleted'))) ...

9 years ago | 0

Submitted


Introduction To MATLAB (February 2015)
These are the files for the "Introduction To MATLAB" webinar which debuted in February 2015.

9 years ago | 1 download |

4.9 / 5
Thumbnail

Submitted


Numeric Editbox
This class provides a numeric editbox uicontrol.

9 years ago | 1 download |

0.0 / 5
Thumbnail

Submitted


File Exchange Search Utility
Query the file exchange or open a specific file

9 years ago | 1 download |

0.0 / 5
Thumbnail

Submitted


Editor Templates Package
Tools for the creation, storage, and use of templates for code that you use frequently.

9 years ago | 3 downloads |

5.0 / 5
Thumbnail

Solved


Add a block to a model
Produce the following signal: <<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>> In this case, the slope of...

9 years ago

Answered
How do i plot and label a graph using secondary axis in matlab
U=[1 2 3 4 5 6 7 8]; A=[0.0141 0.0135 0.013 0.0125 0.012 0.0117 0.0113 0.011]; B=[0.142267 0.14271177 0.1430866 0.14334375 0...

9 years ago | 0

| accepted

Answered
Trouble with padarray and padarray_algo
>>which -all padarray_algo C:\Program Files\MATLAB\R2016a\toolbox\images\images\private\padarray_algo.m % Pr...

9 years ago | 0

Answered
How to cut a sparse gpuArray
For the sparsity level of that matrix ~50%, the sparse array is much bigger than a regular array: x = randi(1,100,100); xs...

9 years ago | 0

Answered
N doesn't increase in 'for loop'
t = zeros(1,10); t(1:10) = 3 This is what you're doing. You're setting all of the indices (1:100) equal to n. Thus only ...

9 years ago | 0

| accepted

Answered
(How) can I get a numerical solution for an ODE (e.g. using ode15s) that respects monotonicity?
Have you tried defining every point in _tspan_? tspan = linspace(0,500,100000); You could perhaps sample it more often n...

9 years ago | 0

Answered
Formatting Bar Graph so XLabels aren't plotted on top of one another?
I might recommend using subplots and horizontal bars. y = rand(80,1); names = cellstr(char(randi(26,80,30)+64)); ax =...

9 years ago | 0

Answered
Can I Always Change the Order of Operands of Logical Operators?
Yes, with the exception of short circuiting behavior with |||| and &&. In which case the second expression may not run. <htt...

9 years ago | 0

Load more