Answered
can I use a compiled Matlab function shared on a private server ?
There are a couple of MATLAB Academic license types that would not permit that; one having to do with licensing specific classro...

3 years ago | 0

| accepted

Answered
datastore=detectImportOptions Pro Max?
When you readmatrix() or readtable() a file, these days options are automatically detected. But the automatically detected optio...

3 years ago | 0

Answered
How to subdivide an interval in subintervals and compute the average value.
x = linspace(0, pi/2, n); fx = f(x); For midpoints, I would point out that the midpoint between fx(K) and fx(K+1) is (fx(K)+fx...

3 years ago | 0

Answered
Error using load : Input must be a MAT-file or an ASCII file containing numeric data with same number of columns in each row.
The binary .mat file contains invalid variable names such as ---#_label 1x1 116 cell ...

3 years ago | 1

| accepted

Answered
Weird Port width mismatch error.
A = 1.3608e+06 B = A+1 fprintf('A = %.4e\n', A) fprintf('B = %.4e\n', B) A == B The two values both display as 1.3608e+06 b...

3 years ago | 0

Answered
How to interpret tocBytes results
You need R2020a or later to use parpool("threads") However if you are using R2021b or later, it is recommended that you use bac...

3 years ago | 1

| accepted

Answered
find duplicated rows in matlab without for loop
The third output of unique gives the "group number" for each entry. There are different ways of handling that. one of ways is [...

3 years ago | 2

Answered
How can i calculate the length of curve?
No, you cannot really get the length of a curve defined by a finite list of points. A finite list of 2D points does not define a...

3 years ago | 0

Answered
How to plot the maximum regions given several functions in a 2D plot?
idx = max(cat(3, A, B, C), [], 3); cmap = [.3 0 0; %light red 0 .5 0; %light green 0 0 .8]; %blue ...

3 years ago | 0

| accepted

Answered
Are differences in results too large to be round off error?
In cases where MATLAB can automatically vectorize calculations on larger arrays, splitting the work between multiple CPUs, then ...

3 years ago | 1

Answered
Install multiple Matlab versions in the same parent folder
It is not a problem to use the file structure you would like. It would only be a problem if you were to try to install two dif...

3 years ago | 1

| accepted

Answered
Copy a txt file to another text file in a defined position
If you are using windows, then system('copy file2.txt+file1.txt file2.txt') The + is magic to Windows copy.exe to tell copy to...

3 years ago | 1

| accepted

Answered
transform an empty matrix '0x0 double' into a matrix '0x1 uint8'
mask = cellfun(@isempty, test_p); test_p(mask) = {zeros(0,1,'uin8')}; Unless, that is, you might have entries that are (for ex...

3 years ago | 0

| accepted

Answered
How to find which MCR is running if I have two versions of it ?
Perhaps use Process Monitor and examine the open files ? https://learn.microsoft.com/en-us/sysinternals/downloads/procmon

3 years ago | 0

Answered
Not able to figure out the way to deal with large vectors
mask = mod(x,2) == 1; Now do the "odd" operations on x(mask) and do the "even" operations on x(~mask).

3 years ago | 0

Answered
Problems in dynamic symsum variables in solving a system of equation
A symbolic variable or expression or symfun or symmatrix can never be used as an index. I cannot show you the corrected code be...

3 years ago | 0

Answered
How to convert char data to double format?
format long g val = ['11 444 214141111 11111111111114111111111 1111111113111111111 111' '11 444 214141113 111113111111141...

3 years ago | 0

Answered
Filling empty region with line segment
regionprops() asking for Centroid and extrema. kmeans() to cluster the x coordinates of the centroids into two clusters. Now pdi...

3 years ago | 0

Answered
how to take mean of variables from 00 and 12 GMT observations?
Now that you have a timetable, you can retime asking for 'hourly'

3 years ago | 0

Answered
On how many computers may I install MATLAB version 2023a with an academic license?
It depends on the license details. In R2023a, 1.3. Network Named User License Option (iv) A Named User may not use ...

3 years ago | 1

| accepted

Answered
Running External Command Prompt Through System Command Prompt
I recommend reading about System.Diagnostics.Process such as at https://www.mathworks.com/matlabcentral/answers/586706-how-to-re...

3 years ago | 0

| accepted

Answered
How OK is it to take parts of Matlab add-ons for one's own code?
No, it is a violation of the license agreement to copy portions of a toolbox to use without the toolbox. There are the occasion...

3 years ago | 1

| accepted

Answered
Open a file error, even though path is valid and correct
Do not use the "" in the directory name. dir = 'C:\Users\Madison-Riley\Desktop\Copernicus Data'; Do not put filenames together...

3 years ago | 0

Answered
Why there is a large numerical error in simple arithmatics?
10^N is not exactly representable in any binary floating point representation when N < 0 . For example, 10^-1 = 1/10 = 0.1 canno...

3 years ago | 0

Answered
MATLAB GUI does not work for others
The work-around is to change tnum(i) = vpasolve(snum(i)==s(t),t); to tnum(i) = vpasolve(snum(i)-s(t),t); snum(i) happens to ...

3 years ago | 2

Answered
Is there a way to Rewrite a Symbolic Expression in Terms of nthroot?
syms x real g = x^(1/3) - 1 mapSymType(g, 'power', @(X) nthroot(children(X,1), 1/children(X,2))) This particular implementati...

3 years ago | 0

| accepted

Answered
Using the matlab app designer, I want to somehow run a function that can modify data within the app without specifically calling it.
function status(varargin) persistent app switch nargin case 1 assert(~isempty(app), 'statu...

3 years ago | 1

Answered
i have the next error but idk wheres the problem.
You might need to set nlobj.Parameters to a cell array containing the sample time.

3 years ago | 0

Answered
Creating an app using Matlabs App designer, need help displaying images in the app from and API.
[im, cmap] = imread(app.Flagimage.ImageSource); if isempty(cmap) if ndims(im) == 2 im = im(:,:,[1 1 1]); %gray t...

3 years ago | 0

Answered
Raising a negative to a non-integer exponential
sym(-2)^(31/10) The -8 is real valued and 2^(1/10) is positive, so we can neglect them for a moment, and examine the (-1)^(1/10...

3 years ago | 0

Load more