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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

| akzeptiert

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

mehr als 9 Jahre vor | 2

| akzeptiert

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

Gelöst


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

mehr als 9 Jahre vor

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

mehr als 9 Jahre vor | 1

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 4

| akzeptiert

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

mehr als 9 Jahre vor | 1

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

| akzeptiert

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 1

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 2

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

mehr als 9 Jahre vor | 1

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

mehr als 9 Jahre vor | 2

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

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

mehr als 9 Jahre vor | 0

| akzeptiert

Mehr laden