Answered
Why do I receive an error message "archive is not a ZIP archive" during MATLAB installation on Linux?
In current MATLAB versions, a downloader is used that downloads archives as required; when using the downloader, the error just ...

4 years ago | 0

Answered
Error installing R2016b: archive is not a ZIP archive
In current MATLAB versions, a downloader is used that downloads archives as required; when using the downloader, the error just ...

4 years ago | 0

Answered
How can I plot the population before evaluating fitness in Matlab GA?
You cannot do that using ga() . ga() will never pass the state to the fitness function. You are also assuming that ga() is cr...

4 years ago | 0

| accepted

Answered
Matlab keeps shutting down while my program is running
One thing I would check is for overheating <https://www.bestmaccleaner.com/mac-temperature-monitor/> I also suggest testing...

4 years ago | 0

Answered
Error in appliying split apply
Sometimes the cause of this is having used a function such as max() that operates along the first non-scalar dimension, together...

4 years ago | 0

Answered
How do I manipulate a large row and column datafile and convert each of many bytes to decimal from HEX
Use readlines(), which will return back a string array, one entry per line. Extract the appropriate indices. arrayfun() a ssca...

4 years ago | 0

| accepted

Answered
elemental wise function of any kind not functioning
Give the command format long g and try again. You have format short in effect by default. format does not change the ans...

4 years ago | 1

Answered
How to get MATLAB to process the files specified in batch
You can have the code call uigetdir() if you want to prompt the user for the directory name. Or you can make the main functio...

4 years ago | 0

Answered
Help please, I want to avoid a warning message.
Upgrade your release. That title is fine in current releases. Question: why are you using \quad there? Why add space at the e...

4 years ago | 0

Answered
Index exceeds the number of array elements (63). Error in ANA (line 23) figure;plot(Xdetections(index_maxplot));
You overwrite *all* of XDetections in every iteration of the first loop.

4 years ago | 0

| accepted

Answered
why could the mathworks be unable to give me a free trial?
It is not easy to tell where you are located, but when I check, people with names very similar to yours are mostly in Mozambique...

4 years ago | 0

Answered
how to solve an equation by using trial and error method?
Multiply both sides by Mx. Subtract the left side from the right. Expand out. You now have a polynomial of degree 2 in Mx.

4 years ago | 1

Answered
How can I use mpu6050 without arduino?
The mpu6050 is an i2c device. You need *some* hardware interface, just not necessarily arduino. You could use a raspberry pi...

4 years ago | 0

Answered
How to save variables in matlab in most optimal way
fwrite() with the 'bit1' precision. For compression calculations purposes you should never be using the size of mat files. ma...

4 years ago | 0

| accepted

Answered
Subtraction in For Loop not executing
for m = 1:LW(i) phi_i_bl = phi_i(1:length(phi_i) - 1); time_i_bl = time_j(1:length(time_j) - 1) +...

4 years ago | 0

Answered
Is it possible for matlab to print output numbers like 0.98765432 merely as .987654 with no fronting zero and only six digits (rounded) ?
regexprep(compose("%.6f", YourMatrix), "^0\.", ".") That would give you a string() array

4 years ago | 0

| accepted

Answered
Applying a function to the values in a table
T.solar_time = calc_solar_time(T.standard_time, L_st, L_loc, T.E); That is passing in *all* entries from the table at the sa...

4 years ago | 1

| accepted

Answered
fsolve within fsolve -> update initial guess
Have solvep() return x0 as well, and update the appropriate variable in the calling function. Or you could back-calculate wha...

4 years ago | 0

Answered
Trying convert a GPX file for a mountain bike trail into Matlab, and convert the GPS data into a useable format.
There are some File Exchange contributions such as https://www.mathworks.com/matlabcentral/fileexchange/45699-ll2utm-and-utm2ll ...

4 years ago | 0

Answered
Error using crossvalind (line 131) Not a valid method.
'Kfold' not 'K_fold'

4 years ago | 0

Answered
Stateflow coder (R13) missing from installation
Stateflow Coder was a separate product than Stateflow, and would have needed to be licensed separately. You would only have s...

4 years ago | 0

Answered
how I can add this condition inside the loop if k= (1-b(g(j)+g(j)) if k>0 then k=(1-b(g(j)+g(j))+df(j)))else k=0
K = max((1-b*(gr(j)+gl(j))+d*fr(j)), 0) No explicit "if" is needed: max() has conditional logic built in.

4 years ago | 0

| accepted

Answered
Convert string cells to text scalar format
filenp=append(fp,fn); This is incorrect. It assumes that the returned path ended with a directory separator, which is not p...

4 years ago | 0

Answered
creating a Dummy variable from a string vector
ismember(investors, experiencedinvestors)

4 years ago | 0

Answered
if function works in one table but not in another
Your constructed table passes in a fixed-width character array for the second variable, which results in each entry being a scal...

4 years ago | 1

| accepted

Answered
Display variable outside ODE45 function
What you are asking for is a common request, and it can be implemented, a little awkwardly. However, what is being asked for in ...

4 years ago | 0

| accepted

Answered
Parsing .txt File with Unique Format
Cases like this are often most easily processed by reading the entire file as text and then using regexp() to extract informatio...

4 years ago | 2

Answered
What optimizer should I use?
By examination, assuming that the constants are positive: * the first term is smallest when log(R2) is smallest, which will o...

4 years ago | 0

Answered
simulation stopped because of step size tolerance and constraints
There are two distinct classes of optimizers. * there are optimizers such as quadrog() where the problem to be solved is repr...

4 years ago | 0

Load more