Community Profile

photo

Walter Roberson


Last seen: Today
47,744 total contributions since 2011

I do not do free private consulting. If you want to bring my attention to something, send a link to the MATLAB Answers location.

Contact

Walter Roberson's Badges

  • Roberson Cup
  • Most Accepted 2019
  • Most Accepted 2018
  • Solver
  • First Review
  • Most Accepted 2017
  • 36 Month Streak
  • Most Accepted 2016
  • Most Accepted 2015
  • Most Accepted 2011
  • Most Accepted 2012
  • Most Accepted 2013
  • Thankful Level 4
  • Grand Master
  • Revival Level 4

View all

Contributions in
View by

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...

16 hours 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...

17 hours 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(...

22 hours 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...

22 hours 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 ...

23 hours 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 ...

1 day ago | 0

Answered
How to save different files in for loop
FileName = FileName1{z+1};

1 day 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 ...

1 day 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. ...

1 day 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-...

1 day 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...

1 day 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...

1 day 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...

1 day 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...

2 days 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...

2 days 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...

2 days 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; ...

2 days 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])

2 days 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...

2 days 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))

2 days 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...

2 days 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 ...

2 days 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....

2 days 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./...

2 days 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...

2 days 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 == (...

2 days 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'

2 days 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...

2 days 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 ...

2 days 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...

2 days ago | 0

| accepted

Load more