Respondida
Increasing HG2 framerate when updating large meshes: mission impossible?
What about using an |hgtransform|? t = hgtransform; set([p1 p2],'parent',t); for i=1:100 tform = makehgtfo...

más de 9 años hace | 0

Respondida
How to assign a title to each row of a table?
LastName = {'Analyical PSDs'; 'Experimental Non-smoothed Periodograms'; 'Experimental Smoothed Peridograms'; 'Time Traces'};...

más de 9 años hace | 0

Respondida
Vectorization instead of for loop
Preallocate your data array before the loop. data = zeros(l,9); Then populate it directly in the for-loop. The prealloc...

más de 9 años hace | 0

| aceptada

Respondida
why don't animations work in LiveScripts?
Live scripts are still new and this functionality hasn't been added yet. You can force a figure to pop out of a live script b...

más de 9 años hace | 2

| aceptada

Respondida
MATLAB Production Server: can I deploy a script that uses SimBiology functions such as sbmlimport or sbiosimulate?
Those functions aren't supported for MATLAB Compiler: <https://www.mathworks.com/products/compiler/supported/compiler_support.ht...

más de 9 años hace | 0

Respondida
Prediction and classification in data mining
I would recommend using the classification learner app. You will need to import the data and transpose it so columns are variab...

más de 9 años hace | 0

Resuelto


Combine the first and last names
MATLAB R2016 provides a rich set of functions to work with string arrays. In this problem, you will be given two string arrays o...

más de 9 años hace

Respondida
How to handle (e.g. close) windows generated by the "view" function?
delete(allchild(groot))

más de 9 años hace | 1

Respondida
How can I use anonymous function / cfit in simulink ?
See my answer here: http://www.mathworks.com/matlabcentral/answers/316742-i-have-a-knn-classification-model-i-want-to-simula...

más de 9 años hace | 0

Respondida
Script fails in function - instrument control
Are you passing X, Y out of the function? function [X,Y] = myOscilloscopeReader() % What you have above end Th...

más de 9 años hace | 0

Respondida
Store MATLAB app designer variables to work-space
You could use |assignin| or |export2wsdlg|.

más de 9 años hace | 4

| aceptada

Respondida
interp1 - rant
You could use |squeeze()| to replace the inner reshapes: y = reshape(interp1(squeeze(x(pos)), squeeze(y(pos)), squeeze(x)),...

más de 9 años hace | 1

Respondida
Has anybody used "makePPTCompilable()" ?
Put the whole thing in a function before compiling. function mainfunction makePPTCompilable(); import mlreportgen.ppt.*...

más de 9 años hace | 0

Respondida
using XtickLabel with fractions and integer numbers
You can't index into a vector with decimals, i.e. x.5. time=[1:1:24]; plot(time) interval_x_axis=0.5; set(gca,'XTick',ti...

más de 9 años hace | 0

| aceptada

Respondida
How do I stop tabs from opening when I create a new file?
Using the |fopen/fprintf/fclose| workflow I don't know why they'd be open. Can you show us what you have?

más de 9 años hace | 0

Respondida
Using the void elements in matlab
Use a NaN. x = [1 nan nan 3]; sum(~isnan(x))

más de 9 años hace | 0

Respondida
how to plot graphs of function e^ax+b in matlab?
a = 1 b = 1 fplot(@(x)exp(a*x)+b) Now vary a and b.

más de 9 años hace | 1

Respondida
parfor works locally, but not on the cluster (transparency issue)
Are there other paths or files that the cluster has access to where one of those functions could be overloaded? My suggestio...

más de 9 años hace | 0

Respondida
Edittext Field with pre-defined value should change to zero if nothing is changed
Why not have them all prepopulated with zeros since that seems to be the default?

más de 9 años hace | 0

Respondida
Exchanging negative values in a matrix with 0
x(x<0)=0;

más de 9 años hace | 0

Respondida
str2double breaks when you pass in a vector?
In >=R2016b, you can just call double on the string directly: double(string({'06012015' '06022015'}))

más de 9 años hace | 0

Respondida
Error with sym variable in a for loop
syms w(i) Plural "syms"

más de 9 años hace | 0

Respondida
MATLAB impacting Skype?
I can anecdotally say that Skype for Business crashes on average 3-4x a day for me (Win7x64). I have multiple MATLABs install...

más de 9 años hace | 0

Respondida
Grouping based on similarity and indices
doc discretize Then doc accumarray doc splitapply

más de 9 años hace | 2

Respondida
How to implement fmincon() in Java for a multivariable optimization with nonlinear constraints and upper / lower boundaries?
Why not use Compiler SDK to build a Java Class directly and avoid rewriting anything? <https://www.mathworks.com/products/mat...

más de 9 años hace | 1

Respondida
Calculate avergae values per hour, day, month and year
This is the exact purpose of <https://www.mathworks.com/help/matlab/ref/retime.html |retime|> with the |timetable| class in R201...

más de 9 años hace | 2

Respondida
nanmin.m % Has no license available
nanmin is in Statistics Toolbox. In R2016b you can get equivalent functionality in base matlab with |min(...,'omitnan')|.

más de 9 años hace | 0

Respondida
How to plot polygons
Look at |geoshow| and |patchm|.

más de 9 años hace | 0

Respondida
create a histogram from my data
which -all histogram I'd guess you have another |histogram| command shadowing the MATLAB builtin one. Your command above w...

más de 9 años hace | 0

Respondida
Is it possible to use 20 variables in a multi regression on MATLAB?
doc fitlm

más de 9 años hace | 0

| aceptada

Cargar más