Community Profile

photo

Walter Roberson


43,877 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

  • First Review
  • 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
Summation of Random Numbers
I would use a while loop. while summation <= x %add a random integer to the summation end

2 hours ago | 0

| accepted

Answered
How do I only take the first 1000 elements of a vector?
NameOfVariable(1:1000)

3 hours ago | 0

Answered
For loops and If statements not working correctly
https://www.mathworks.com/matlabcentral/answers/480004-need-help-with-taking-an-array-inside-a-for-loop-and-plotting-it#answ...

3 hours ago | 0

Answered
Please help me !!! Error using * Inner matrix dimensions must agree. Error in GRAFICA_TOTAL_2 (line 40) Volum= (2*T.^2*q1+q2*T.^3*((1/2-(A1*(A2-A3))/2*C*Ro*G(A1+A2-A3))))
Volum= (2*T.^2*q1+q2*T.^3*((1/2-(A1*(A2-A3))/2*C*Ro*G(A1+A2-A3)))) q2 is 1 x 301. T is 1 x 301. The * operator is algebraic mat...

5 hours ago | 1

| accepted

Answered
read 20 images in ordered manner
See the File Exchange contribution https://www.mathworks.com/matlabcentral/fileexchange/47434-natural-order-filename-sort Or, ...

6 hours ago | 0

Answered
Distance between point and an array.
pdist2()

9 hours ago | 0

Answered
error using imfinfo()
Images in memory such as your compareimages do not have a "bitdepth", and cannot be queried with imfinfo() Before you while lo...

9 hours ago | 1

Answered
error; Unable to perform assignment because the left and right sides have a different number of elements.
Vds=0:0.1:5; Vds is a vector of length 51 elseif Vgs(i)>Vt||Vds<(Vgs(i)-Vt) Notice on the right hand side of the || that Vds...

9 hours ago | 0

Answered
Input value in Edit text in MATLAB GUI
Use str2double() instead of str2num() .

10 hours ago | 0

Answered
Flower in a image
It is not possible to write code that can count all flowers in an image without counting anything that is not a flower. For ...

19 hours ago | 0

Answered
Delimate Table and Rewrite it
table() applied to the results of strsplit is probably giving you a table with one variable and three rows. You need to take ...

19 hours ago | 0

| accepted

Answered
How to Remove NaN (missing values) from 3d array, temporally and spatially?
I suggest you look in the File Exchange for inpaint_nans

1 day ago | 0

Answered
lisans nasıl alcagız arkadaslar? How do we get a license?
If you are in Turkey, you need to contacte FIGES AS https://www.mathworks.com/company/aboutus/contact_us.html#TR

1 day ago | 0

Answered
How to let a function know that a variable in another function has been updated?
You do not usually need to notify a function that there has been an update. If the function runs once and stops, then you would...

1 day ago | 0

| accepted

Answered
How to convert 3d array to raster (tiff)
surf(lon, lat, precip(:,:,1).'); view(2)

1 day ago | 0

| accepted

Answered
How do I use randn vs randi vs rand?
rand() : creates uniform random numbers ("with replacement") in the range (0,1) exclusive. To create uniform random numbers in t...

1 day ago | 0

Answered
Remove empty rows in Table
newT = rmmissing(T);

1 day ago | 0

| accepted

Answered
imcrop function problem for 16bit image 2019b
h = imshow(I, []); [Icrop, rect] = imcrop(h);

1 day ago | 0

Answered
Question regarding parallel computing
No, the pool will time out after about 30 minutes and it will shut itself down. However, during that time it will continue to ...

1 day ago | 0

| accepted

Answered
How do I load the desired columns and rows I want from a csv file?
readtable() with 'HeaderLines', 1 and 'ReadVariableNames', false

2 days ago | 0

Answered
i already download MATLAB 2019b and 2013 but i can not find Sinpowersystem in Simulink Library of both auf this two versions
SimPowerSystems was merged with SimElectronics to create Simscape Electrical as of R2018b. None of those were included in the S...

2 days ago | 1

Answered
Datastore function can't find files
MacOS and Linux do not use \ as directory separators. You should be using fullfile() files = fullfile(pwd, 'Data', [filenames '...

2 days ago | 2

| accepted

Answered
Copying logical from one .m to another
mat2str(NameOfVariable) Should give you a character vector that you can copy and paste

2 days ago | 0

| accepted

Answered
Hardware board which support MATLAB code for data hiding
There are no hardware boards that support MATLAB source code. You can use MATLAB source code on something like a Surface Pro ta...

3 days ago | 0

Answered
Finding and counting of identical rows in a matrix
M = [ 1 300 3500 500 6000 3 200 3000 500 6500 5 150 2500 450 6000 8 400 2000 550 5500 5 200 3000 500 6500 9 150 2500 4...

3 days ago | 0

Answered
I am trying to get the binary key of each letter from my huffman dictionary. How can I do that? I tried pulling them directly from the cells using a for loop. Please help.
The data type of the entries in the second column of the returned dictionary is always double. In your commented out code you h...

3 days ago | 0

Answered
Quiver plating vectors in given equations of u and v.
dx1dt(q,1) = k(2)*(1/(1+(x2/K(2))^n)) + k(1)*((x1/K(1))^n/(1+(x1/K(1))^n)) - b(1)*x1; x2 is a 31 x 31 matrix, so (1+(x2/K(2))^n...

3 days ago | 1

| accepted

Answered
How to replace all odd numbers with infinity using find()
locations = find( Value_Is_Odd(C) ); where Value_Is_Odd is a function or expression that you write that takes in an array of va...

3 days ago | 0

| accepted

Answered
Storing the matrix values in a loop
theta=[-90:15:90]; N=length(theta); [...] for i=1:N m=cosd(theta); n=sind(theta); why bother iterating over the lengt...

3 days ago | 0

| accepted

Load more