Community Profile

photo

Walter Roberson


Last seen: Today
50,005 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
Speed up serial Communication with parallel computing
When you plot inside a parallel worker of any kind, the result cannot be sent to the user display.

13 minutes ago | 0

Answered
Trying to arrange big data
don't use eval there. Use setfield. Split the name at _ into a cell array and do cell expansion to insert the field names http...

16 minutes ago | 0

Answered
Undefined function 'combntns' for input arguments of type 'double'.
https://www.mathworks.com/help/map/ref/combntns.html the function is part of the Mapping Toolbox. Use nchoosek instead.

21 minutes ago | 0

| accepted

Answered
Converting character matrix to number
str2double(cellstr(A)) or double(string(A))

39 minutes ago | 0

Answered
Error While Solving couple-Differential Equations
y(10);(-interpolated_Ug) -(C_s*(y(10)-y(8))/m_s)-(K_s*(y(9)-y(7))/m_s)]; You have the interpolation variable, *spa...

1 hour ago | 0

Answered
How to get Subplot without losing data
subplot() checks the location information you provide, and figures out what part of the figure that implies. It then checks to s...

2 hours ago | 0

Answered
plot 21x61x22 double
volumeviewer https://www.mathworks.com/help/images/ref/volumeviewer-app.html

2 hours ago | 0

Answered
Error using audioDatastore/read (line 25)
Wav files permit a number of different codecs (algorithms for encoding data). The software used to decode is sort of like a plug...

2 hours ago | 0

Answered
MATLAB "conv"command valid/legal for both causal and non causal signals?
Yes. Multiplication and addition do not care where you got the values, or whether it is physically meaningful to convolve the va...

2 hours ago | 0

Answered
Index exceeds the number of array elements (0) error. Help please
It is not advisable to use clc inside most functions. There is not typically a reason to clear the command window. You should...

3 hours ago | 1

| accepted

Answered
USB-C communication
usb-c ports just show up as USB ports. usb-c is a physical connector, not a signalling protocol: the signalling protocol is USB....

4 hours ago | 0

| accepted

Answered
Creating Sphere using Cuboids of varying size
%assume center at xc, yc, zc dx = sidelength/2; %Left/Right, Front/Back, Down/Up vertices = [ -1, -1, -1 %LFD 1 -...

4 hours ago | 0

Answered
Change the position of a field in a structure
Use struct2cell() on the old structure, and fieldnames() . Then insert a new cell of values for the new field at the top of the ...

5 hours ago | 0

Answered
How generate a patch object with tetramesh?
In R2020a and earlier: Record the vector returned by tetramesh(), and call handle() on it. The result you get back will be a pa...

6 hours ago | 0

Answered
How can I animate this plot3?
geoplot3() returns a line object. You can pull the XData, YData, ZData coordinates out of the line object and delete the line ob...

6 hours ago | 0

Answered
Call mex function using system()?
In Linux, executables can have any valid file name. The file extension is not considered by the operating system when deciding h...

6 hours ago | 0

| accepted

Answered
Using the Cancel button in uiprogressdlg to immediately stop execution
https://www.mathworks.com/matlabcentral/answers/496530-using-timer-how-can-i-cleanly-exit-a-function-execution-when-the-timer-fi...

6 hours ago | 0

Answered
Creating regenerative random numbers
rng(655321) %or use any other positive integer constant

6 hours ago | 0

Answered
valid indices for 'output' are restricted in parfor loop
for j= 1:100 SNR = list(j); base = (j-1)*1000; parfor i = 1:1000 totallist(base+i,1) = SNR; ou...

7 hours ago | 2

| accepted

Answered
How to get matlab to read the code
Your code has load(strcat('C:\Users\User\Dropbox\My PC (LAPTOP-8G4JCC0U)\Documents\onscale',num2str(i),'\2d_simple_array.ma...

8 hours ago | 0

Answered
How can I create a matlab matrix below?
N = 6; diag(-2*ones(1,N)) + diag(ones(1,N-1),-1) + diag(ones(1,N-1),1)

9 hours ago | 1

| accepted

Answered
How can i find unknown variable in matrix
syms D [2 1] syms AE sols = solve([0; -2] == AE * [0.405 0.096; 0.096 0.128] * D + [0; 0],D) simplify([sols.D1; sols.D2]) Th...

9 hours ago | 0

| accepted

Answered
I need help figuring the code out.
You can use a Monte Carlo method: format long g R = randi([2 3]) xy = rand(10000,2) * exp(R); x = xy(:,1); y = xy(:,2); mas...

9 hours ago | 0

Answered
Using isnan to check if there is any NaNs in a window and setting all the values to NaN if there are any.
for i=1:11:T; for k=1:3; if any(isnan(y(i:i+11,k))) X(i:i+11,k) =NaN; end end end

10 hours ago | 0

| accepted

Answered
How to convert cell to matrix
new_matrix{i}=t{:,i*3};

12 hours ago | 0

| accepted

Answered
run the script without opening the figure, its possible?
set(0, 'DefaultFigureVisible', 'off') before you run the code. This will last for the rest of your MATLAB session unless you r...

12 hours ago | 1

Answered
How to define k in bcfun?
In bcfun, for ya, you sould calculate k based on the x that would be used for the first boundary condition, and for yb you shoul...

12 hours ago | 0

Answered
How do I declare varibles whose outputs are expected from Matlab simply without so many rules, like for example in c++?
You are trying to construct a vector of function handles. You cannot do that in MATLAB. This is because in MATLAB, () indicates ...

17 hours ago | 0

| accepted

Answered
How to convert dataset of .mat to .tif files?
You need to use the Tiff() class https://www.mathworks.com/help/matlab/ref/tiff.html Use SamplesPerPixel = 38, and use ExtraSa...

1 day ago | 0

Answered
Can we apply scatter3() on high dimension matrix?
Yes, but it can become quite difficult to understand. You can use scatter3(x, y, z, PointSize, Color) Here PointSize and Colo...

1 day ago | 0

Load more