Community Profile

photo

Walter Roberson


Last seen: Today
50,693 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
Cant't Change FramesPerTrigger in videoWriter
Frames Per Trigger is not a documented property of Videowriter or of Videoreader

8 hours ago | 0

Answered
how to solve matrix equation?
x1+x2=n1 x1*x2=n2 so x2 = n1-x1 x1*(n1-x1) = n2 x1*n1-x1^2 = n2 x1^2 - x1*n1 + n2 = 0 and solve the qu...

8 hours ago | 0

| accepted

Answered
Condition monitoring of steel ropes using Automatic Width. How to measure real widths of steel ropes?
In order to do that, you are going to need to look carefully at the right-most cable, about 3/4 of the way down, and notice on t...

12 hours ago | 0

Answered
'"Too many input arguments." errror remove
function bf Which is a function that does not accept any parameters. Then you have some stuff, and then you have function...

13 hours ago | 1

Answered
removing the text data by only keeping the numerical values
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/592115/D11.csv'; opt = detectImportOptions(filename,...

13 hours ago | 0

Answered
can I create .exe file by using MATLAB student version?
Yes, for restricted sets of MATLAB. The Student version can purchase MATLAB Coder, which is able to compile subsets of MATLAB i...

13 hours ago | 0

Answered
integral doesnt work how can i?
Some functions do not have any closed form integrals, and no representation in any standard functions (such as the exponential i...

13 hours ago | 0

Answered
how do i get MATLAB to extract a specific value in multidimension array or matrix
If you want the bounding box, then mask = CHIRPS_SPI3_SM<-1 & CHIRPS_SPI3_SM>-4; m x n x p mask1 = any(mask,1); %1 x...

14 hours ago | 0

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values.
You initialize a playing field of free space and obstacles. You start at some particular location. At any one point, you have ...

16 hours ago | 0

Answered
Getting rid of fzero errors
You never assign to r_inf and it is a global variable so it is initialized to empty. You use [0 r_inf] but r_inf is empty so tha...

17 hours ago | 0

Answered
BAD REFERENCE SIGNALS ERROR IN TDOA
It looks like you are using a system that has three signals total, two of which are intended to be the same reference signal, an...

1 day ago | 0

Answered
How can I fix the error "Subscript indices must either be real positive integers or logicals. "
u1(1i)=-((Beta(1i)+10)*abs(x(1))+2*abs(x(2))+s1(1i)+z1(1i))*sign(S(1)); Beta(1i) is an attempt to index which does not exist. ...

1 day ago | 0

Answered
Error using == (line 30) Invalid types for comparison?
rxTestLabels = categorical(gather(testLabelsTall));

1 day ago | 0

Answered
How can I fix the error "Subscript indices must either be real positive integers or logicals."
d1=0.15*sin(5*t(1i)); t(1i) is an attempt to index MATLAB has absolutely no implied multiplication -- it does not even have ...

1 day ago | 0

Answered
alternative to interpolation, how to introduce randomness
d = rand(3600, length(flux_per_hour)); rd = d./sum(d,1); flux_per_second = flux_per_hour(:).' .* rd; %seconds down, hours ...

1 day ago | 0

| accepted

Answered
integral calculus question of two variables.
syms x y int(3*x + y * x^2, x, 2, 3)

1 day ago | 0

Answered
how do I average each 10 elements of a matrix?
mean10 = mean(reshape(Vector, 10, []),1)

1 day ago | 0

| accepted

Answered
get user input in the form of an integer
You can use inputdlg() to request multiple boxes, and then str2double() the resulting cell array. You can use input() and assum...

1 day ago | 0

Answered
I can't seem to generate a Morse code output on my edit2 static text in my GUI, is there something wrong with my code? We're supposed to create a GUI which converts Letter/Numbers into Morse code..
x = char(get(handles.edit1_num,'String')); Okay, x is what the user input. for i=1:length(x) You want to proceed through the ...

1 day ago | 0

Answered
Integrating cell2mat array
function ECC = energy_consumption(ECC_1,ECC_2) syms tt ECC_1t = ECC_1.*tt; ECC_2t = ECC_2.*tt; ECC11 = int(ECC_1t, tt...

1 day ago | 0

| accepted

Answered
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.
import numpy as np MATLAB does have an import statement, but it only accepts a single name after it; it does not support using ...

1 day ago | 0

Answered
How to add an eguation into my plot?
You can text() a label into position, and you can set the Interpreter property of the text() object to 'latex'

1 day ago | 0

Answered
How to plot double series with one parameter?
Look at the denominator of your inner summation. It has . But if n = 2*p then that would be p^2 - (2*p)^2/4 -> p^2 - 4*p^2/4 -...

1 day ago | 0

Answered
Need help solving equation in terms of a variable
syms L k Lk2 eq8 = cos((L*k)/2)*cos((2^(1/2)*L*k)/4) - (2^(1/2)*sin((L*k)/2)*sin((2^(1/2)*L*k)/4))/2 == 0 K = solve(k*L/2 == L...

1 day ago | 1

Answered
How to go about programming this function in MatLab
c = @(x,y) sum(sqrt((a-x).^2 + (b-y).^2))

2 days ago | 0

Answered
How to call a function in a nested parfor loop?
m = 5; n = 7; xx = randn(m,n); yy = randn(m,n); output = zeros(m,n); parfor i=1:m xi = xx(i,:); yi = yy(i,:); ...

2 days ago | 1

| accepted

Answered
Initial Value of x(0)=16
Offset = 1; x(0+Offset)= 16 %( how can I make this work????) a=16; N=500; for k=1:N x(k+Offset)= (1/2.*((x(k-1+Offset))...

2 days ago | 0

| accepted

Answered
Change names of multiple pictures inside a file
a ='C:\Users\nas\Desktop\0.3'; A = dir( fullfile(a, '*.jpg') ); fileNames = fullfile({A.folder}, {A.name}); for iFile = 1 :...

2 days ago | 1

| accepted

Answered
Error converting Logical to Char (Horzcat Error)
It is a bug in some versions of Audio System Toolbox. In later versions the line if isscalar([varargin{:}]) has been repla...

2 days ago | 0

Answered
Translation of a plot line
The easiest way is to find the line handle, extract the YData, add the shift to it, and store the result back in the YData prope...

2 days ago | 0

| accepted

Load more