Answered

fmincon using only gradient vector, without scalar function

That is not supported by fmincon. You must return a scalar value as the first output. If you have set the appropriate option...

fmincon using only gradient vector, without scalar function

That is not supported by fmincon. You must return a scalar value as the first output. If you have set the appropriate option...

circa 2 ore ago | 0

Answered

How to convert an expression to a function with lossless precision?

|Is there a lossless conversion method?| NO, there is no lossless conversion method. A few years ago I encountered a paper...

How to convert an expression to a function with lossless precision?

|Is there a lossless conversion method?| NO, there is no lossless conversion method. A few years ago I encountered a paper...

circa 3 ore ago | 2

| accepted

Answered

How to use onCleanup?

You probably would not use onCleanup for that. Instead you would create a property of app that you would initialize to gobjects(...

How to use onCleanup?

You probably would not use onCleanup for that. Instead you would create a property of app that you would initialize to gobjects(...

circa 7 ore ago | 0

Answered

Why F vs T graph are not plotted , it shows only blank figure and how i can get all the values of F and T in the workspace as it shows only last value.

for T=-10:5:30 Inside the body of the for loop, at any one time, T will be a scalar value. The first iteration it would be th...

Why F vs T graph are not plotted , it shows only blank figure and how i can get all the values of F and T in the workspace as it shows only last value.

for T=-10:5:30 Inside the body of the for loop, at any one time, T will be a scalar value. The first iteration it would be th...

circa 8 ore ago | 1

Answered

Matlab Function : error

You cannot run that code just by pressing the green run button in the editor, and you cannot run that code just by invoking the ...

Matlab Function : error

You cannot run that code just by pressing the green run button in the editor, and you cannot run that code just by invoking the ...

circa 9 ore ago | 0

| accepted

Answered

Detect connection lost using tcpip class ?!

Mohammad Sami's suggestion is probably about the best you are going to be able to get. The original TCP architecture does not ...

Detect connection lost using tcpip class ?!

Mohammad Sami's suggestion is probably about the best you are going to be able to get. The original TCP architecture does not ...

circa 11 ore ago | 0

Answered

How to save different files in for loop

FileName = FileName1{z+1};

How to save different files in for loop

FileName = FileName1{z+1};

circa 11 ore ago | 0

| accepted

Answered

how to iterate an ODE

i've tried to fit the code in a for loop i=1:length(n) allocating a P(i) value to the P variable where n is a "linspace" vector ...

how to iterate an ODE

i've tried to fit the code in a for loop i=1:length(n) allocating a P(i) value to the P variable where n is a "linspace" vector ...

circa 12 ore ago | 0

| accepted

Answered

Pendulum code error. How do I resolve unrecognized function or variable when it is clearly stated?

for istep=1:nstep if nstep is less than 1 then the loop will not be executed at all and period will not be assigned to. ...

Pendulum code error. How do I resolve unrecognized function or variable when it is clearly stated?

for istep=1:nstep if nstep is less than 1 then the loop will not be executed at all and period will not be assigned to. ...

circa 13 ore ago | 0

Answered

Convert to RGB file with colormap defined with different clim

There is a File Exchange contribution named freezeColors https://www.mathworks.com/matlabcentral/fileexchange/7943-freezecolors-...

Convert to RGB file with colormap defined with different clim

There is a File Exchange contribution named freezeColors https://www.mathworks.com/matlabcentral/fileexchange/7943-freezecolors-...

circa 15 ore ago | 0

| accepted

Answered

axis equal & off not work for trisurf function

You have not set hold on so the axes NextPlot property is set to replace. When trisurf() is called, it checks the NextPlot prope...

axis equal & off not work for trisurf function

You have not set hold on so the axes NextPlot property is set to replace. When trisurf() is called, it checks the NextPlot prope...

circa 15 ore ago | 0

| accepted

Answered

Pass data between two Matlab?

you can use tcp/ip to send data between distinct processes you can use one MATLAB with two spmd workers, and use labSend and la...

Pass data between two Matlab?

you can use tcp/ip to send data between distinct processes you can use one MATLAB with two spmd workers, and use labSend and la...

circa 15 ore ago | 0

Answered

Compiling mex files with XCode - Error using mex

/Applications/CompEcon/CEtools/lusolve.c needs to have #include <string.h> added near the top. /Applications/CompEcon/CEtool...

Compiling mex files with XCode - Error using mex

/Applications/CompEcon/CEtools/lusolve.c needs to have #include <string.h> added near the top. /Applications/CompEcon/CEtool...

circa 16 ore ago | 0

| accepted

Answered

How can I save the reflectance output that have value range [0-1] to TIF image in Matlab?

https://www.mathworks.com/matlabcentral/fileexchange/30519-export-image-to-tif-or-tiff-file-of-selected-data-type And discussi...

How can I save the reflectance output that have value range [0-1] to TIF image in Matlab?

https://www.mathworks.com/matlabcentral/fileexchange/30519-export-image-to-tif-or-tiff-file-of-selected-data-type And discussi...

1 giorno ago | 1

| accepted

Answered

Error while executing a MATLAB function block.

The supported compilers for your release are listed at https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support...

Error while executing a MATLAB function block.

The supported compilers for your release are listed at https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support...

1 giorno ago | 0

Answered

how to install WFDB toolbox in matlab

Create a new folder in any convenient location that you have write access to, and which is not underneath the Windows program in...

how to install WFDB toolbox in matlab

Create a new folder in any convenient location that you have write access to, and which is not underneath the Windows program in...

1 giorno ago | 0

Answered

Can this be arranged to run

In a new file, put in the code f = @(x,y) exp(x) + sin(y); g = @(x,y) exp(x) .* sin(y); x0 = 0; xf = 4; Mx = 20; My = 20; ...

Can this be arranged to run

In a new file, put in the code f = @(x,y) exp(x) + sin(y); g = @(x,y) exp(x) .* sin(y); x0 = 0; xf = 4; Mx = 20; My = 20; ...

1 giorno ago | 0

| accepted

Answered

Plotting a piecewise returns error

t =[0:0.1:2*pi]; delete that line plot(f_1, t); instead fplot(f_1, [0, 2*pi])

Plotting a piecewise returns error

t =[0:0.1:2*pi]; delete that line plot(f_1, t); instead fplot(f_1, [0, 2*pi])

1 giorno ago | 0

Answered

Will increasing the number of workers in parallel computing matlab harm?

Imagine that each matlab worker required 1 byte of data and instructions. Imagine that you have a petabyte of memory. Clearly af...

Will increasing the number of workers in parallel computing matlab harm?

Imagine that each matlab worker required 1 byte of data and instructions. Imagine that you have a petabyte of memory. Clearly af...

1 giorno ago | 0

| accepted

Answered

How to add space between vector indices in an output

fprintf('%d ',B(1:end-1)) fprintf('%d]\n', B(end))

How to add space between vector indices in an output

fprintf('%d ',B(1:end-1)) fprintf('%d]\n', B(end))

1 giorno ago | 0

| accepted

Answered

Desired object produced but still receive "out of memory error"

you are using https://www.mathworks.com/matlabcentral/fileexchange/29832-n-dimensional-sparse-arrays You need to use nzmax to...

Desired object produced but still receive "out of memory error"

you are using https://www.mathworks.com/matlabcentral/fileexchange/29832-n-dimensional-sparse-arrays You need to use nzmax to...

1 giorno ago | 1

| accepted

Answered

Sorting List of Filenames according to Windows

Windows explicitly does not define a sorting order for files. It leaves it up to the filesystems -- so the sort order for FAT32 ...

Sorting List of Filenames according to Windows

Windows explicitly does not define a sorting order for files. It leaves it up to the filesystems -- so the sort order for FAT32 ...

1 giorno ago | 0

Answered

ode solver with unknows coefficients

In some situations, this can be coded as a Boundary Value Problem https://www.mathworks.com/help/matlab/boundary-value-problems....

ode solver with unknows coefficients

In some situations, this can be coded as a Boundary Value Problem https://www.mathworks.com/help/matlab/boundary-value-problems....

1 giorno ago | 0

Answered

How to calculate a constant in your made up formula

Assuming that you have one known t for each known h and d value, and that D and x and y and z are known, then C is mean() of t./...

How to calculate a constant in your made up formula

Assuming that you have one known t for each known h and d value, and that D and x and y and z are known, then C is mean() of t./...

1 giorno ago | 0

Answered

Regarding update or reactivation of my Campus-Wide License.

Re-activation of campus-wide licenses is under the control of the university, according to whatever procedures they have in plac...

Regarding update or reactivation of my Campus-Wide License.

Re-activation of campus-wide licenses is under the control of the university, according to whatever procedures they have in plac...

1 giorno ago | 0

Answered

Solve (a*B) + (c*D) = E without the Symbolic Toolbox

((a*B) + (c*D)) / E == 1 ((a*B) + (c*D)) == 1 * E a*B + c*D == E a*B == E - c*D a == (E-c*D) / B a == E/B - D/B * c a == (...

Solve (a*B) + (c*D) = E without the Symbolic Toolbox

((a*B) + (c*D)) / E == 1 ((a*B) + (c*D)) == 1 * E a*B + c*D == E a*B == E - c*D a == (E-c*D) / B a == E/B - D/B * c a == (...

1 giorno ago | 0

Answered

force grid to be on top of patch

If you mean the kind of grid you get from "grid on", then set the axes "Layer" property to 'top'

force grid to be on top of patch

If you mean the kind of grid you get from "grid on", then set the axes "Layer" property to 'top'

1 giorno ago | 0

| accepted

Answered

Bisection method while loop not iterating, only gives the first answer.

if FC*FA>0 c=a; else c=b; end Why are you assigning to c there? You never use c afterwards. If...

Bisection method while loop not iterating, only gives the first answer.

if FC*FA>0 c=a; else c=b; end Why are you assigning to c there? You never use c afterwards. If...

1 giorno ago | 0

Answered

GA algorithm toolbox (define constraint)

This kind of system can be programmed by introducing up to 4 new integer variables, with the logical conditions x1 == x6 * x4 ...

GA algorithm toolbox (define constraint)

This kind of system can be programmed by introducing up to 4 new integer variables, with the logical conditions x1 == x6 * x4 ...

1 giorno ago | 0

| accepted

Answered

Using savefig in live editor

When loading a figure does not appear to create the figure, but gives no error, then check whether the figure exists but has 'vi...

Using savefig in live editor

When loading a figure does not appear to create the figure, but gives no error, then check whether the figure exists but has 'vi...

1 giorno ago | 0

| accepted