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

casi 10 años hace | 0

Respondida
Is it possible to use (publish) markup inside nested functions
Also note that if you're trying to do fancy markup, you may be better off with the report generator that gives you really fine c...

casi 10 años hace | 0

| aceptada

Respondida
using a timer in GUI
function NameOfFun() do something end Needs to take in the two inputs that come by default, src, evt. function Name...

casi 10 años hace | 0

| aceptada

Respondida
Matlab VS adobe photoshop
Automation.

casi 10 años hace | 0

Respondida
Reduce comuting time: can I change a triple for-loop to a matrix formula?
Did you preallocate _meanrs_ and _meants_? E.g. before the loop meanrs = zeros(whatever_the_final_size_is); ?

casi 10 años hace | 0

Respondida
Find rows and columns in matrix that meet a condition, fast
How about: bwconncomp() This returns a list of pixel indices, from which you can calculate row/column and size. You can...

casi 10 años hace | 1

| aceptada

Respondida
is it possible to expand [0 {9}, 45 {2}, 0 {9}]
This should do it: str = '[0 {9}, 45{2}, 0{9}]'; expr = '(?<num>\d*)'; % match digits nums = cellfun(@str2double,rege...

casi 10 años hace | 1

Respondida
Suggestions on how to optimize this code (avoid for-loop)?
This does what you want but does not order based on your country/product order that you have hardwired but rather based on uvp, ...

casi 10 años hace | 0

| aceptada

Respondida
poly2cw doesn't work for this simple rectangle. I have an example here. Could you please check this code?
*EDIT with more info from comments* It sounds like what you really want is the convex hull of your points since your points...

casi 10 años hace | 0

| aceptada

Respondida
Run multiple for loops in separate functions simultaneously?
Use a |timer|. The |timer| will periodically fire calling the arduino method which can then call a plot update as necessary. I...

casi 10 años hace | 0

Respondida
First time using MATLAB,and I need help.
You can create an anonymous function like this (e.g. |f = x.^2|): f = @(x)x.^2 And evaluate it at a specific point (e.g....

casi 10 años hace | 0

Respondida
Not sure how to ask this, but here's my scenario:
%% Data x = {'a', 'b'; 'a', 'c'; 'a', 'b'; 'b', 'c'; 'c', 'a'; 'a', 'd'}; %% Engine uv ...

casi 10 años hace | 0

| aceptada

Respondida
Plotting graph objects with curved edges and forced layout
<http://blogs.mathworks.com/graphics/2015/12/31/interactive-graph-layout/> Maybe?

casi 10 años hace | 0

Respondida
Can my workstation also be used as the DCS cluster head?
Yes, it can be.

casi 10 años hace | 0

Respondida
What determines the time axis in spectrogram using normalized frequencies?
Time is a function of the sampling frequency, fs. Compare spectrogram(rand(1,100000),64,0,64,8000) spectrogram(rand(1...

casi 10 años hace | 0

Respondida
FAQ: How can I process a sequence of files?
In MATLAB R2014b and newer, you can use a |datastore| to read a sequence of files in a load-analyze-discard manner or in one sho...

casi 10 años hace | 1

Respondida
Simevents stochastic replications capability?
You can set the seed of an entity generator in order to do this (R2016a SimEvents). <</matlabcentral/answers/uploaded_files/5...

casi 10 años hace | 0

Respondida
MATLAB code with GUI codes on another language (C#, Python, ...)
Yes*2, you can run the MATLAB engine from Python or open it as an automation server in C#. <http://www.mathworks.com/help/rel...

casi 10 años hace | 0

Respondida
How to live plot 2 seconds of DAQ data while updating 10 times/sec
One easy way is to use |animatedline| in newer releases.

casi 10 años hace | 0

Respondida
How to use datetime to plot value vs. hour of day, i.e. daily cycle?
*EDIT* %% [tHours.Year, tHours.Month, tHours.Day] = deal(0); plot(tHours,humidity,'x','DatetimeTickFormat','HH')

casi 10 años hace | 0

| aceptada

Respondida
Using accumarray or a similar method for tables
% fake c and data c = [1; 2; 2; 1; 3] data = repmat(1:6,5,1) % engine sz = size(data) accumarray([repmat(c,sz(2),1)...

casi 10 años hace | 0

Respondida
Exclude packages from MCR
Starting in R2016a, if you are only doing numerics (not graphics) the MCR will be much smaller <http://www.mathworks.com/help...

casi 10 años hace | 2

| aceptada

Respondida
How effective is Report Generator DOM API on linux?
# As of R2016a, you can go direct to pdf on Linux without needing Office or Word installed. It pipes it direct to PDF without L...

casi 10 años hace | 0

| aceptada

Respondida
Pass variables during minimization routine
Use a nested function instead of an anonymous one. <http://www.mathworks.com/help/releases/R2016a/matlab/matlab_prog/nested-f...

casi 10 años hace | 0

Respondida
What is an import list?
So you can use the shortname pack1.pack2.file(pi) or import pack1.pack2.* file(pi) I tend to do the import if I...

alrededor de 10 años hace | 0

Respondida
How to only keep lines that start with a number?
x = fileread('test.csv') xc = strsplit(x,sprintf('\n')) % split to cellstr ix = regexp(xc,'^\d') % match a digit at beginnin...

alrededor de 10 años hace | 0

Respondida
Removing components touching phase in 3d volume
Use |bwdist| to get the distance from every pixel to the border (euclidean distance). Zero out any less than or equal to sqrt(2...

alrededor de 10 años hace | 0

Respondida
Most efficient way to sum anti-diagonal elements
diag(flip(A))

alrededor de 10 años hace | 0

Respondida
Is there a way to provide a variable to a worker of a parpool?
You want a |parallel.pool.Constant|. <https://www.mathworks.com/help/distcomp/parallel.pool.constant.html>

alrededor de 10 años hace | 1

Cargar más