Community Profile

photo

Walter Roberson


Last seen: Today
50,957 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
The if else statement does not read a string in the excel file
Change [strings] = xlsread('Terzaghi.xlsx','Sheet1','E5:E34'); %%Soil classification to [~,strings] = xlsread('Terzaghi.xlsx'...

12 hours ago | 0

Answered
Error converting double to handle in close function
close 1 means that MATLAB should first attempt to close a figure named '1' (character vector), and that if that fails, that MAT...

12 hours ago | 0

Answered
The if else statement does not read the other conditions
"based on the assigned value of D1 and Wl1, it should be applied in the first condition of the if statement" Huh? D1 is 3 and W...

13 hours ago | 0

Answered
Using fzero with two conditions
fzero() cannot be used with two equations or two unknowns. fsolve() from the Optimization toolbox can be used. Also, fminsearc...

15 hours ago | 0

Answered
"Conversion to logical from sym is not possible" arising in bisection method
fgss = (gss - (gsms * m1 * (k1 - m1^2/2 *log((k1+k)/m1))/pi^2 )) ; f = matlabFunction(fgss)

18 hours ago | 0

Answered
I can't find error's reason help;;; (about plot function)
tensStrain is a cell array, but you are using () indexing with it so you are passing in a cell array to plot. You need {} to ext...

18 hours ago | 1

| accepted

Answered
Integrate the output of interpol
If you have a numeric array that you want to integrate, then you would use trapz() one time for each dimension to integrate over...

20 hours ago | 0

Answered
Can I upload videos to youtube with an academic license of Matlab?
Yes, provided they are not monetized, and they relate to your teaching or research.

1 day ago | 0

| accepted

Answered
figure plot legend keep on in for loop
c =[1 2 3] ttarg = 0.5; for c_value=1:3 figure(1) hold on leg = sprintf('c = %g', c(c_value)); dist = abs(...

1 day ago | 0

Answered
Transfer my licence from my laptop to my PC
Deactivate the license on the laptop; https://www.mathworks.com/matlabcentral/answers/100663-how-do-i-deactivate-matlab?s_tid=ta...

2 days ago | 0

Answered
Crop and save multiple images
projectdir = 'c:\users\michaela\Desktop\homework\2' outdir = 'c:\users\michaela\Desktop\homework\2\cropped'; outsize = 7; i...

2 days ago | 0

Answered
A question about fsolve
fsolve() normally gives a summary after it runs, talking about the reason it stopped running (even in the case that everything w...

2 days ago | 0

| accepted

Answered
How to change the color of origin lines in a plot ?
xline(0, 'color', [255 84 2]/255) yline(0, 'color', [254 169 1]/255)

2 days ago | 0

| accepted

Answered
Expand a table to match number of rows of an other table
month = 1; year = 2016; ID = [10000 10001 10002 10003]; t1 = table(month,year) t2 = table(ID) t3 = [t2, repmat(t1, h...

2 days ago | 0

| accepted

Answered
How can I convert an implicit function to an explicit function?
On my system at home, the following program takes less than 6 seconds. However, because I was iterating through versions during ...

3 days ago | 0

Answered
Why are the legends appearing twice?
Your code is assuming that the audio only has one channel, but instead it has two channels in each file.

3 days ago | 1

| accepted

Answered
How to verify if a row or a column or a cubic 3x3 have a repeated number for sudoku?
Suppose you store NaN for all slots that have not had anything written to them. Then extract the appropriate portion of the arra...

3 days ago | 1

Answered
How can I find exactly the coordinates of the center of the yellow circle?
You can calculate the center of mass of the image. https://www.mathworks.com/matlabcentral/answers/363181-center-of-mass-and-to...

3 days ago | 1

| accepted

Answered
Cycle through graph marks
Create a cell array of linespec (character vectors indicating style and color and marker). Then each time you plot, index into a...

3 days ago | 0

Answered
Frame Differecning help using matrices and pixels
Replace temp = im2gray(temp); temp2 = frames(:,:,:,l + 1); temp2 = im2gray(temp2); with temp = double(im2gr...

3 days ago | 0

Answered
Error using sym>convertChar (line 1537) when solving an ODE using laplace transform. How to fix the problem?
%%CODE %% Solving 2nd order ODE using laplace transform syms x(t) s X F Dx = diff(x,t); D2x = diff(Dx,t); eqn = D2x + 7*D...

3 days ago | 1

Answered
How can I sort through a set of tables and remove the duplicates?
isequal() can be used to test whether two table() have the same content and same variable names. For efficiency, you can group ...

4 days ago | 0

Answered
Error in my code
uigetfile has two outputs. The second one is the directory. You need to put it together with the file name to get the name to pa...

4 days ago | 0

Answered
Give a specific color to an interval of value
I suggest you use https://www.mathworks.com/matlabcentral/fileexchange/69470-custom-colormap

4 days ago | 0

| accepted

Answered
Save Geographic Player Figure as an image
fig = player.Parent; saveas(fig, 'ImageFileName.png')

4 days ago | 0

| accepted

Answered
How do i send image trought fsk modulator
Simulink reshape() block. https://www.mathworks.com/help/simulink/slref/reshape.html

4 days ago | 0

| accepted

Answered
problem in cell matrix operations
Your current code would take 1 row from Coh, then the following 2 rows, then the following 3 rows, and so on. Is that what is de...

4 days ago | 0

| accepted

Answered
Solving system non-linear equations
syms x [1 4] sr = sym([0.05 0.1 0.5 1]); Eapp = sym([2.09 2.18 2.27 2.4]).*1e6; Ei = sym(2.55).*1e6; E0 = sym(2.14).*1e6;...

4 days ago | 0

Answered
Appending multiple variables onto a single file
dinfo = dir('*.mat'); filenames = {dinfo.name}; nfile = length(filenames); hasmap = false(nfile,1); for K = 1 : nfile ...

4 days ago | 0

| accepted

Answered
what does the function handles do in matlab?
handles is not a function. It is a struct. handles by itself has no special meaning; it could have been called anything. The c...

4 days ago | 1

| accepted

Load more