Answered
What is LD_LIBRARY_PATH when setting up matlab?
LD_LIBRARY_PATH is a standard UNIX (POSIX) environment variable that affects the directories searched by the linker at run-time ...

4 years ago | 1

| accepted

Answered
ScatteredInterpolant for Surface Extrapolation
scatteredInterpolant() does not do any kind of surface fitting. The default fitting option that it uses, the one you are getting...

4 years ago | 1

Answered
What is the minimum supported .net version for MATLAB R2018b ?
https://www.mathworks.com/help/releases/R2018b/matlab/matlab_external/system-requirements-for-using-matlab-interface-to-net-.htm...

4 years ago | 0

Answered
Error using classreg.learning.internal.classCount (line 31) You passed an unknown class '0.7641' of type double.
load humanactivity rng('default') %for reproducibility Partition = cvpartition(actid, 'Holdout', 0.10); trainingInds = trai...

4 years ago | 0

Answered
When execute the below code ? the error message appear 'Index exceeds the number of array elements'?
Using extractBetween() as suggested by @Jérôme is the approved way to work with characters inside strings. But you can also go t...

4 years ago | 1

Answered
How to generate histogram from a given (x,y) dataset?
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1131165/xy.xlsx'; data = readmatrix(filename); bar(...

4 years ago | 1

Answered
why MATLAB code take a long time { parfor x=1:length(rb) }
parfor x=1:length(rb) That is 42 work groups, to be divided up among however many cores you have for ru=0:0.01:4 401 ru itera...

4 years ago | 0

Answered
app designer: how to index through multiple UIAxes
app.plotHandles = gobjects([app.UIAxes_1,app.UIAxes_2,app.UIAxes_3,app.UIAxes_4,app.UIAxes_5]) The gobjects() function only acc...

4 years ago | 1

| accepted

Answered
Can you write a code for the following hyperbolic function?
Your sqrt() was ending too early. I made exactly the same mistake when I typed into my own session. format short g y_m_vals = ...

4 years ago | 1

Answered
get the numerical values from char
data = cell2mat(textscan(val, '%f', 'HeaderLines' ,17)); The 17 here is my estimate from counting blank lines. I would have bee...

4 years ago | 0

Answered
Convert a cell in a field from string to number
I suspect it is because the data is currently in string format x y z all need to be numeric for plot3() to work. However, tdfr...

4 years ago | 0

Answered
Incompatible Array Size/Mathematical Input Error
x = 3.*[8 7 4]; V = [8 7 4]; R = [8 7 4]; Eo = V./(2.*R); r = ((2.*R) + x)./(2.*R); B = acosh(r); syms m n integer S = x....

4 years ago | 0

Answered
textscan - import the k-th out of n columns and ingore the 1st row which contains column names
cols_to_keep = [17, 83:85]; %for example fmt = repmat({'%*f'}, 1, NumberOfColumns); %read but do not sae fmt(cols_to_keep) ...

4 years ago | 0

| accepted

Answered
Would you tell me the code for Fisher Pearson skewness?
FPskewness = sum(x - mean(x)) / numel(x) / std(x).^3 You would need to be more rigourous if you wanted to handle non-vectors.

4 years ago | 0

Answered
How to force textscan to include the custom EOL character
No, textscan() will always eat the EndOfLine delimiters. One approach: Keep a buffer of unprocessed text, initially [] while ...

4 years ago | 1

| accepted

Answered
Obtain Values Greater Than Threshold For a Duration
%Fs is sampling frequency, use your actual frequency instead of the %hard-coded one I give here Fs = 24000; threshold_durat...

4 years ago | 1

| accepted

Answered
Multiple Outputs of a function into a single vector
There is no functional solution in MATLAB. The only way to capture multiple outputs is an assignement statement. The assignment ...

4 years ago | 1

| accepted

Answered
How to enable zooming only when the scroll is rotating?
No, there is no way to do that. Mice do not actively exchange state both directions with computers. There is no way for a com...

4 years ago | 0

| accepted

Answered
Text file data segregation
Use fileread() to read the file as a character vector. Use parts = regexp(TheVector, '\*\*', 'split'); parts(cellfun(@isempty...

4 years ago | 0

Answered
Skipping certain lines using fscanf
Can it be done using fscanf(). Yes. But that doesn't mean that fscanf() is a good tool for the job. S = "-4 -7.6 Point 1" + n...

4 years ago | 0

Answered
My license expired, how do I renew it?
Student licenses that you purchase directly from Mathworks through the online store, do not expire. MOOC licenses provided by a...

4 years ago | 0

Answered
Find minimum and maximum value from a matrix for a specific interval
rows = [2,5,8,11,14,17,20,23,27]; [minima, maxima] = bounds(YourMatrix(rows,:), 2);

4 years ago | 0

| accepted

Answered
improve for loop performance
In general: you could get higher performance by moving the loop inside of some_function, so as to reduce the number of function...

4 years ago | 0

Answered
How can I get a Zoom In/Out value for a figure in MATLAB?
You are using imagesc() in a loop. You do not have hold turned on, and you have not configured the axes NextPlot behaviour. In ...

4 years ago | 0

| accepted

Answered
Double derivating a function and after turn in the answer 2 constans
syms x y f(x,y) = atan((x-3*y)/(x+3*y)) der = diff(f(x,y),x,x) sder = simplify(der) subs(sder, [x, y], [1, 4*log(sym(3))])...

4 years ago | 0

| accepted

Answered
How can I return an error in a loop format if user does not enter inputs in an array format?
use the input option 's' to receive the characters the user entered. Check to be sure that the characters entered match the synt...

4 years ago | 1

Answered
fitting data form a matrix using loops
You do not need all those variables at the same time, not for the purpose of the plot. You could look for K = 1 : 5 start ...

4 years ago | 0

| accepted

Answered
How to export variables into excel file continuously?
Unfortunately, in your R2019a release you have to either keep track of the current position, or else each time you went to write...

4 years ago | 0

Answered
What is the default random number generation algorithm for 2018b Matlab? ( with randn(1,1) command)
mt19937ar with a Ziggaurat transform is used for randn() these days. https://www.mathworks.com/help/matlab/ref/rng.html?searchH...

4 years ago | 0

| accepted

Answered
Make specific array from another array elements
while k<0 You did not initialize k. You are testing that k is less than 0. But the next statement, k=(i) changes k to some...

4 years ago | 0

Load more