Beantwortet
How to open a file browser in a MATLAB script?
doc uigetfile doc fullfile

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 9

| akzeptiert

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

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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]) = []

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 0

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 4

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

Gesendet


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

fast 10 Jahre vor | 1 Download |

4.9 / 5
Thumbnail

Gesendet


Numeric Editbox
This class provides a numeric editbox uicontrol.

fast 10 Jahre vor | 1 Download |

0.0 / 5
Thumbnail

Gesendet


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

fast 10 Jahre vor | 1 Download |

0.0 / 5
Thumbnail

Gesendet


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

fast 10 Jahre vor | 2 Downloads |

5.0 / 5
Thumbnail

Gelöst


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

fast 10 Jahre vor

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

fast 10 Jahre vor | 0

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

Mehr laden