Community Profile

photo

Walter Roberson


41.363 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

  • Most Accepted 2018
  • 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
  • Knowledgeable Level 4
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
Porting over some code to Python and I don't understand this multiplication syntax
It is not anything special. In order for [d;1] to work, d and 1 would have to have the same number of columns. Since 1 has one...

etwa eine Stunde ago | 0

Answered
y position of a rectangle drawn over an image compared to axes
Depending on the state of the axes (hold on or not) and the image drawing function you use, it is common for the image drawing f...

etwa 2 Stunden ago | 0

| accepted

Answered
Double vs Single Precision, Matlab in 2019
>> x = linspace(single(0),single(pi),20); >> y = single(rand(1,20)); >> z = interp1(x, y, linspace(single(0),single(1),20)) z...

etwa 4 Stunden ago | 0

Answered
Is there any way to separate the terms of a product?
If you have the Symbolic Toolbox, then f = @(x) exp(x-2)*log(x) syms x temp = f(x); op0 = feval(symengine, 'op', temp, 0) r...

etwa 4 Stunden ago | 0

Answered
How to install and enable Symbolic Math Toolbox
https://www.mathworks.com/matlabcentral/answers/101885-how-do-i-install-additional-toolboxes-into-an-existing-installation-of-ma...

etwa 4 Stunden ago | 0

Answered
How do I install additional toolboxes into an existing installation of MATLAB?
In sufficiently new versions of MATLAB, there is an additional installation method for Mathworks toolboxes that you have already...

etwa 4 Stunden ago | 0

Answered
Outputting solutions to symbolic variables in a matrix.
It sounds like Matrix is now an array of symbolic expressions, some probably representing just numbers, and some probably repres...

etwa 5 Stunden ago | 0

Answered
Command window showing the errror 'Index exceeds matrix dimensions'. How to resolve it? Following is my code if possible resolve the code.
Somehow you accidentally assigned a value to a variable named imageInputLayer, so the line of code now refers to the variable, i...

etwa 5 Stunden ago | 0

Answered
Plotting trajectory of ball
sin() expects radians.

etwa 20 Stunden ago | 0

Answered
Newtons Method, help calling anon function inside of function file
You are calling the anonymous function properly in your code. Your problem is that you are not passing in an anonymous function...

etwa 20 Stunden ago | 1

Answered
Eigenvalue With a twist...
bwep = solve(beep, x) This can be somewhat slow by 4 x 4 A, and by 5 x 5 it might just give you a bunch of roots() because of t...

etwa 20 Stunden ago | 0

Answered
converting vector to 3d array
rgb2gray(reshape(TheVector, 32, 32, 3)) for any one vector of length 3072 (1024 x 1024 x 3). The result would be 2D, 32 x 32 . ...

etwa 20 Stunden ago | 0

Answered
How to run optmization on vectors?
That particular error message has several possible causes: You have accidentally called your own MATLAB script fminsearch which...

etwa 21 Stunden ago | 1

Answered
What will happen if you bought a MATLAB Student license after you graduated university?
MATLAB Student licenses never expire. However, you only have permission to use a Student license while you are enrolled in an ap...

etwa 21 Stunden ago | 2

| accepted

Answered
Is there a way to extract data from surface graphics in the curvefitting toolbox?
Experimenting, I find: s = findall(groot,'tag','curvefit.gui.FunctionSurface'); x = s.XData; y = s.YData; z = s.ZData;

etwa 23 Stunden ago | 0

Answered
Index in position 2 exceeds array bounds (must not exceed 6)?
for loops always evaluate all of their parameters first and record them before executing the loop body. Therefore the value of l...

etwa 24 Stunden ago | 0

Answered
Change colors' short names or add new ones
No. They are hardcoded into function colstyle for validation purposes. On OS-X that is part of libmwhgbuiltins.dylib

ein Tag ago | 2

| accepted

Answered
Function With While Loop Help
At each step, you can determine h (height) by knowing the current volume remaining and knowing the cross-section area of the ves...

ein Tag ago | 0

Answered
How to create a transparent, rectangular patch with rounded corners?
See http://mathworld.wolfram.com/Superellipse.html

ein Tag ago | 0

Answered
how to summary graphics
syms x f1(x) = x^2 - 4*x + 3; f2(x) = x^3 - 4*x + 3; then fplot([f1 f2], [0 4]) or fplot(f1, [0 4]) hold on fplot(f2, [0...

ein Tag ago | 0

Answered
Polynomial to Matrix form(canonical form)
syms x1 x2 QQ = x1^2 +2*x1*x2+x2^2 factor(QQ)

ein Tag ago | 0

Answered
Error: Conversion to struct from single is not possible
Data.Encode.AH.High_Theta.Phases is not a cell array. Instead it is a struct, and phases{ii,jj} is an array of double. The [] o...

2 Tage ago | 0

Answered
DICOM Image Resize Error
It is not possible to resize an entire imageDatastore. You would need to loop doing readimage() and resize them one by one, or e...

2 Tage ago | 1

| accepted

Answered
Creating plot with 2 x axes
Your ax2 is using the default background color, which is white. It is hiding the other axes.

2 Tage ago | 0

Answered
audiorecorder is "not intended for long recordings". What is?
Yes, audio device reader from Audio System Toolbox is what you should be using for real time processing .

2 Tage ago | 0

Answered
Conditionally Defining a Variable using ODE45
you need to use three ode45 calls , once for the three cases (before 3, during the range, after 4)

2 Tage ago | 0

Answered
How can I get outcome at a particular value after performing differentiation?
subs(diff(f,x),x,2)

2 Tage ago | 0

| accepted

Answered
Need help writing a for loop
assign to qmin(iT) plot(Te,qmin)

2 Tage ago | 1

| accepted

Answered
How can I write this C++ script to Matlab?
for k = No_TimeSamples for i = No_Pixels SUM_1 = 0; SUM_2 = 0; for j = 1 : No_Geophones ...

2 Tage ago | 0

Answered
While loop not performing
When you use if or while with a condition, then MATLAB only considers the condition to be true if all the values being tested ar...

2 Tage ago | 0

| accepted

Load more