Answered
serialportlist is not working
USB mice are not serialports. Each USB physical device has one or more "endpoints" associated with it. For example a webcam mi...

3 years ago | 1

| accepted

Answered
How to check whether the windows system port are connected or disconnected ?
What MATLAB itself offers is serialportlist bluetoothlist instrhwinfo visadevlist MATLAB itself does not offer direct way ...

3 years ago | 0

Answered
what can MATLAB do with tif files
MATLAB can read (most) ordinary TIF files with the imread But TIF files can be someone complicated so MATLAB also offers the TI...

3 years ago | 1

Answered
parfor variable classification issue revisited
Clear a multidimensional array. parfor along one of the dimensions, preferably the last. Within the parfor loop, use nested for...

3 years ago | 0

| accepted

Answered
How do I convert from HEX to DEC numbers larger than 2^52?
If the number is larger than 2^52 then if it is an integer it needs to be either int64 or uint64. H = '400921fb54442d18'; D = ...

3 years ago | 0

Answered
Create a drop down list where a user selects an item, and that item is assigned a numerical value, and then that value is used in a calculation.
You can use numeric items for ItemsData, and when you do the Value property will be the associated numeric value. However, your...

3 years ago | 0

Answered
I have a dataset containing daily rainfall values which has some zero values in it. Can i fit lognormal, exponential, gamma, beta distributions to this? How to do so stepwise?
lognormal: NO, the log(0) will ruin the calculations exponential: NO unless it is exponential plus constant rather than pure ex...

3 years ago | 0

Answered
Issues with splitting a matrix into many smaller matrix
for i = -4.5200:0.04: 0.7200 The i are floating point values. M{n} = PIN_SORT(find(PIN_SORT(:,1)== i),:); You are compar...

3 years ago | 1

| accepted

Answered
Is there a plan to support the zstd compression of parquet files?
No? Yes? Maybe? Rutabaga ? That is proprietary information. You will need to contact your sales person and arrange a Non Disclo...

3 years ago | 0

Answered
How can I achieve interpolation over the entire Cartesian space, without being limited by the convex hull of the data points, with TriScatterInterp (or griddata)?
You cannot do that with TriScatteredInterp -- it is strictly limited to interpolation. These days it is recommended that you sw...

3 years ago | 0

| accepted

Answered
NaN values appearing using ode45
Your initial conditions are incompatible with those equations -- with the divisions and those initial conditions you get divisio...

3 years ago | 0

| accepted

Answered
Convert .csv to .wav audio
The time in the file is not uniformly sampled. The data needs to be resampled before being written to a file. Also, the file con...

3 years ago | 0

Answered
Error using websave (line 98)
/usr/local/MATLAB/R2021a/toolbox/matlab/external/interfaces/webservices/restful/+matlab/+internal/+webservices/HTTPConnector.m s...

3 years ago | 0

Answered
How to code a 1D-random walk with wait time?
waitingTime = pause(120.0); pause is a MATLAB function that is typically passed a scalar floating point number, and delays ex...

3 years ago | 0

| accepted

Answered
Error when running a code
The code has non-scalar wavelet coefficients wn and wt, and is written assuming that t is scalar or row vector, but t is a colum...

3 years ago | 0

Answered
How to fit lognormal distribution to a dataset which contains some zero values?
Don't do that? There are a small number of possibilities in that situation: That the log-normal distribution is just a wrong m...

3 years ago | 0

Answered
how to delete a custom warning identifier, not just "display off" ?
lastwarn warning('IEH754H GETMAIN cannot provide buffer') lastwarn warning('') lastwarn

3 years ago | 0

Answered
scatteredInterpolant gives out NaN in some query points
By default, scatteredInterpolant with 'linear' method does not do extrapolation. If you attempt to query at a location that is o...

3 years ago | 0

Answered
How do you specify the samples per symbol and Fs in the code ?
C4FM Phase 1 is defined as 4 samples per symbol and 12.5 kHz according to the link you posted. The 4 is right in the name, C4FM....

3 years ago | 0

Answered
lsqnonlin evaluation limit problem
Initialize opts = optimoptions('lsqnonlin', 'MaxFunctionEvaluations', 10000, 'MaxIterations', 10000); LB = []; UB = []; A = []...

3 years ago | 0

Answered
Incorrect number or types of inputs or outputs for function 'codegen'.
you do not have MATLAB Coder installed

3 years ago | 1

| accepted

Answered
Integrating a constant?
format long g constant = 1.23456; constantFun = @(x) constant*ones(size(x)); attempt1 = integral(constantFun, 0, 10) a...

3 years ago | 0

| accepted

Answered
All combinations of a data set without mixing data across arrays
Var1 = [1400, 1700, 1900]; Var2 = [1340, 1680, 1900, 1871, 789]; Var3 = [900]; Var4 = [950, 680]; Var5 = [100, 150, 150, 900...

3 years ago | 0

Answered
recovering .mlapp file
If you visit https://drive.mathworks.com and sign in, then to the left there will be a "Deleted Files" link that might perhaps b...

3 years ago | 0

Answered
Keep Variable Name when adding Variables to a table
The relevant code is using inputname() to try to figure out variable names. inputname() returns empty for any expression giving ...

3 years ago | 1

| accepted

Answered
How to get "reliable" rounding?
temp = 6.50983000000000 fprintf('%.999g\n', temp) You can see that 6.50983000000000 exactly does not exist in binary floating ...

3 years ago | 1

Answered
Parfor, variable is indexed in different way
[~,rry(ii)] = min(diffy); You are indexing rry by the expression ii that involves the parfor index variable. ...

3 years ago | 0

Answered
Why mod(19, nRun) where nRun is 19, is not equal to 0?
format long g yieldLoss = 1 - 0.9999 yieldLoss == 0.0001 yieldLoss - 0.0001 MATLAB does not operate in decimal: it operates ...

3 years ago | 0

| accepted

Answered
How to fit Gumbel extreme value distribution to a dataset? Can it be done using fitdist? Or how to use method of moments to fit gumbel distribution? Detailed steps required
evfit would be a Type 1 Extreme Value Distribution fit, also known as a Gumbel Distribution

3 years ago | 0

Load more