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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 2

| accepted

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

9 years ago | 0

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

9 years ago | 0

Solved


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

9 years ago

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

9 years ago | 1

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 4

| accepted

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

9 years ago | 1

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

9 years ago | 0

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

9 years ago | 0

| accepted

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 1

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 2

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

9 years ago | 1

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

9 years ago | 2

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

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

9 years ago | 0

| accepted

Answered
How can I check whether an argument is given or not (inputParser)?
There's a _'UsingDefaults'_ property of the inputParser that is populated after it is parsed. This will tell you which variable...

9 years ago | 4

Load more