Answered
Create the smallest polygon enclosing set of points
See boundary()

4 years ago | 1

| accepted

Answered
Unrecognized method, property, or field 'verts' for class 'PRM'.
This code uses a number of routines that are not part of anything provided by Mathworks. I have not been successful in figuring ...

4 years ago | 0

Answered
Taking the Inverse of 6x6 Symbolic Real Symmetric Matrix Crashes MATLAB
create a framework matrix to take the inverse of, and then subs() syms M [6 6] iM = inv(M) ; imat = subs(iM, M, Yo...

4 years ago | 0

| accepted

Answered
change row when compiling an array
Store into answer{i}

4 years ago | 0

Answered
How do I get a license?
https://www.mathworks.com/academia/tah-support-program/eligibility.html to check to see if your university has a campus license...

4 years ago | 0

Answered
MATLAB precision (?) error that escalates to infinity
Matrix multiplication calculates each location as the sum of a number of products of pairs. Sometimes this is expressed using th...

4 years ago | 0

Answered
Change code to paralle computing (for loop -> parfor loop)
temp_ft_mcd = zeros(npulse,nrbin); No, do not do that within the parfor. You rebuild the entire matrix each time, but you o...

4 years ago | 1

| accepted

Answered
Why the command does not displaying my answer?
In order for output to show up at the command line, one of the following must occur: * you use fprintf with no file identifie...

4 years ago | 0

Answered
How to get all combinations of PRODUCTS between two array elements?
A(:).*B(:).' If you can guarantee that both are row vectors then either A.'. * B or A .* B.' The result wil...

4 years ago | 0

Answered
Is fit() not supposed to be used? It seems intentionally terrible.
https://www.mathworks.com/help/curvefit/fit.html#bto2vuv-1_sep_bto2vuv-1-x Data to fit, specified as a matrix with either one...

4 years ago | 0

Answered
How to change the format of input .txt files?
You may have to read the header separately. Then readtable. Then I suggest you use compose() passing in a string() object as the...

4 years ago | 0

Answered
Convert table into timetable
Import = table2timetable(Import, 'RowTimes', Import.Name);

4 years ago | 1

| accepted

Answered
Please explain what this error is
It is not acceptable to have the space then ( then 1 then ) in the file name. You need to save the file into a name that only ha...

4 years ago | 0

Answered
Find an index of maximum occurring element
See the first and third outputs of mode()

4 years ago | 1

| accepted

Answered
need help in solving this problem
x = 0:0.01:4; y = 0:0.01:4; y2 = 2+y; z = @(x,y) 16.6698.*(x.*y) - 23.0641.*(x.*y); plot(x, z(x, y), x, z(x, y2)) ...

4 years ago | 0

Answered
Transmitter Sites in Matlab
txs = txsites('Antenna',yagiUda,'AntennaAngle', 0 ,... 'AntennaHeight',10,'SystemLoss',0,... 'TransmitterFrequency',144e+06,...

4 years ago | 2

| accepted

Answered
Compiled application is very slow
The code generated by MATLAB Coder does not use the high-performance MKL or LAPACK or BLAS libraries, because Coder is often use...

4 years ago | 1

Answered
How to choose an element from a vector with not equal probabilities?
https://www.mathworks.com/help/stats/randsample.html using the w parameter. If you do not have that toolbox then there are wa...

4 years ago | 0

Answered
Find all unique values and replace it with new values
findgroups() But since you are using floating point numbers you really should use the third output of uniquetol() instead

4 years ago | 2

| accepted

Answered
Equalising the number of points in a graph
mn1 = min(x1) ; mn2 = min(x2) ; mn = max(mn1, mn2); mx1 = max(x1) ; mx2 = max(x2) ; mx = min(mx1, mx2) ; mas...

4 years ago | 0

Answered
Three nonlinear equation with initial guess
with the symbolic toolbox you can find 8 solutions including a complex conjugate pair. The real solutions are approximately ...

4 years ago | 0

Answered
how can i restore data which is replaced in the end
Either add n as an index to the array, or else do calculations similar to the d1 d2 to determine where to write into. My reco...

4 years ago | 0

| accepted

Answered
Should we always search for the global minima in our optimization problem?
No!! Finding the "true vacuum" (global minima) energy state of the universe could be an utter disaster of the highest possible o...

4 years ago | 1

Answered
Using fscanf to correctly store them in a struct and go to the next patient
That file format cannot be parsed. Unlike what you indicated when I asked, there is no tab on the line for the solo doctor Docto...

4 years ago | 0

Answered
Parallel pool on function that uses persistent variables
I am having difficulty finding this documented, but it is well known. parpool local workers operate in different processes, and ...

4 years ago | 0

| accepted

Answered
How to add webcam to simulink?
<https://www.mathworks.com/help/imaq/image-acquisition-in-simulink-1.html> You will need to install the support package for U...

4 years ago | 0

Answered
What is the number of cores that my fit code uses for running and the efficiency of running it on a cluster?
All of your cores are probably being used. The calculations to go from x and proposed model parameters to residues, are typicall...

4 years ago | 1

Answered
How to do "not equal to" constraints in fmincon/Global search?
You could try a nonlinear equality constraint ceq = double(isequal(x, [0 1 0 1])); This would return 1 if the equality h...

4 years ago | 0

Answered
Scatter with colour-coded markers (matrix)
scatter(x(:), y(:), 10, velo(:)) You might potentially also want to add a caxis() call, if you want to map velocities to con...

4 years ago | 1

Answered
subs command is not working on differentiation in MATLAB
theta1(t)=0.02*t; theta2(t)=0.3*t; That is, you had replaced the function theta1 (a function of t) with the symbolic var...

4 years ago | 0

Load more