Community Profile

photo

Walter Roberson


Last seen: Today
47,731 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 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...

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

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

13 hours 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; ...

14 hours 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])

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

20 hours 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))

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

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

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

24 hours 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./...

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

24 hours 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 == (...

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

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

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

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

1 day ago | 0

| accepted

Answered
Computational Complexity of matrix multiplication
The computational complexity is the same. Multiplication of two complex numbers is a constant multiple of operations compared to...

1 day ago | 0

Answered
Cell Conversion Problem when transformed into a matrix form
mask = cellfun(@(M) ~isequal(size(M), [3,3]), YourMatrix); find(mask) You will discover that some elements are not 3x3. ...

1 day ago | 0

Answered
\lVert and \rVert are not rendered on '9.7.0.1190202 (R2019b)', Ubuntu 18.04
Those are amsmath and that package is not included in MATLAB latex.

1 day ago | 0

Answered
How am I gonna do if I just want this to show me only Decoy message: Invalid rescue day . And the changes will not affect other codes?
Before switch C2 insert failed = false; After disp('Decoy message: Invalid rescue day.'); insert failed =...

1 day ago | 0

| accepted

Answered
fmincon optimization in matlab using OutputFcn
https://www.mathworks.com/help/optim/ug/output-functions.html#OutputFunctionsForOptimizationToolboxExample-2 shows an example c...

1 day ago | 0

Answered
Change of boundary condition at inlet from constant to a power law time dependent function
Change Phig=gamma*(Vol+2*C*Leak)-t;Phib=GS(y(:,1),y(:,N),tipVal); to Phig = gamma*(Vol+2*C*Leak) - t; Phib = GS(y(:,1), y(:,...

1 day ago | 0

Answered
Detecting an object in binary image and cropping it
maskvert = any(YourBinaryImage, 1); firstcol = find(maskvert, 1, 'first'); lastcol = find(maskvert, 1, 'last'); with obvious ...

2 days ago | 0

| accepted

Answered
Can someone tell me how can I create a if statement with mulitple else?
if C2 == 1 disp('Monday'); elseif C2 == 2 disp('Tuesday'); else disp('something else'); end

2 days ago | 0

Answered
Find the coefficient of a certain term in an expression
Not directly, no. However, you can coeffs(A,X, 'all') and look in the third last entry (highest degree is first so third last ...

2 days ago | 0

Answered
How to write an array to a pre-defined column in an existing .csv file
You have to read in the existing file in full, add the new data to the in-memory version of the file, and write the complete fil...

2 days ago | 0

Answered
CEC13 Linux C++
For Visual Studio, %Lf stands for "long double" . https://stackoverflow.com/questions/7822928/scanf-not-taking-in-long-double ...

3 days ago | 1

| accepted

Answered
Simulink doesn't "run" + error 126
https://www.mathworks.com/matlabcentral/answers/285494-why-do-i-see-loadlibrary-failed-with-error-126-when-launching-matlab-r201...

3 days ago | 0

Answered
Trouble giving decimal input
0:2 does not express the range starting from 0 and ending at 2. 0:2 expresses a vector of numbers starting from 0 and increme...

3 days ago | 1

| accepted

Load more