Community Profile

photo

Walter Roberson


Last seen: Today
47 748 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
How do I plot contours colours within ranges?
contourf() and pass in a specific list of contour level values. Combine that with a custom colormap and probably the caxis() com...

environ 3 heures ago | 0

| accepted

Answered
Take Xor between Hexadecimal and binary
Provided that you do not have more than 64 bits, the easiest approach is to convert them both to decimal, use bitxor() with appr...

environ 4 heures ago | 0

Answered
to load Matlab executable once and keep calling the function many times?
If you know the number ahead of time, perhaps pass it as a command line argument? At least if your executable is MATLAB and not ...

environ 5 heures ago | 0

Answered
Calling a mat file from batch file and getting "Error: This statement is incomplete." . Matlab is opening but its throwing an error due to an IF condition in batch file.
The parsing of DOS commands is pretty complicated. See https://stackoverflow.com/questions/4094699/how-does-the-windows-command-...

environ 5 heures ago | 0

| accepted

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

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

1 jour ago | 3

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

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

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

1 jour 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 jour ago | 0

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

1 jour 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 jour 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 jour 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 jour 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 jour 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 jour 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 jour 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 jours 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 jours 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 jours 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 jours 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 jours 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...

3 jours 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))

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

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

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

3 jours 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./...

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

3 jours 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 == (...

3 jours ago | 0

Load more