Walter Roberson - MATLAB Central

Statistics

All
MATLAB AnswersCodyFrom 01/11 to 04/25Use left and right arrows to move selectionFrom 01/11Use left and right arrows to move left selectionTo 04/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%
MATLAB Answers

37 Questions
61,042 Answers

Cody

0 Problems
1 Solution

RANK
1
of 298,313

REPUTATION
138,054

CONTRIBUTIONS
37 Questions
61,042 Answers

ANSWER ACCEPTANCE
48.65%

VOTES RECEIVED
18,730

RANK
 of 20,563

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK
119,203
of 160,817

CONTRIBUTIONS
0 Problems
1 Solution

SCORE
20

NUMBER OF BADGES
1

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Highlights

AVERAGE NO. OF LIKES

  • Most Accepted 2024
  • Most Accepted 2023
  • Solver
  • First Review
  • Most Accepted 2022
  • Most Accepted 2021
  • Roberson Cup
  • Most Accepted 2019
  • Most Accepted 2018
  • Most Accepted 2017
  • 36 Month Streak
  • Most Accepted 2016

View badges

Feeds

View by

Answered
exporting-to-excel-spreadsheets
datadir = '.'; %path to data files dinfo = dir(fullfile(datadir, '*.xslx')); filenames = fullfile({dinfo.folder}, {dinfo.name...

7 hours ago | 0

Answered
Can I download the latest version of Matlab if I renew the maintenance service?
Updating Software Maintenance Service gives you the right to update to any version of MATLAB that is released during the time th...

21 hours ago | 0

Answered
Can I get the integral formula using Matlab?
syms x m n f = (1/sym(pi))*sin(n*x/2)*(pi-x)^2*sin(m*x/2); Fint = int(f,x,[0 2*pi]); limit(Fint, m, n) subs(ans, n, 1) sim...

2 days ago | 0

Answered
How to make MATLAB read the environment variable JAVA_HOME
Potentially you could edit the .matlab7rc.sh file. See https://www.mathworks.com/help/matlab/ref/matlabmacos.html#bunueg9-5

2 days ago | 0

Answered
Extract Text and Values from String
strs = {'AB(16.7)CD[20.6]EF[.1]', 'AB(16)CD[20.6]EF[.1]'}; for idx = 1 : length(strs) str1 = strs{idx}; info = regexp...

2 days ago | 0

Answered
How can I create new rows in my table?
t(1) = t0; y(1) = y0; for i = 1 : n y(i+1) = y(i) + h * f(t(i), y(i)); t(i+1) = t0 + i * h; fprintf('y(%.2f) = ...

2 days ago | 0

| accepted

Answered
Use of parallel with RTX 5090
For the 50x0 series, you currently need to enable forward compatibility; https://www.mathworks.com/help/parallel-computing/paral...

3 days ago | 0

Answered
Syntax problem with command in cmd
system("C:\Program Files\Altair\2025\Compose2025\Compose_Console.bat" -e "filePath=C:/Users/pantm/OneDrive/Desktop/TEST_LCA_doub...

3 days ago | 1

Answered
Matlab student version: :Error:Failed to load library 'commchan3' referenced by 'AcousticPropagationBP_Session1/Noise interference n(t)'."
Communications Systems Toolbox is not free with MATLAB and is not one of the packages bundled into the Student Suite. At the mo...

3 days ago | 0

Answered
Numerical Methods for Singular systems
if i<=N_0+1; x1(:,i)=0; x2(:,i)=0; x3(:,i)=0; else d_1=floor(1.5+si...

3 days ago | 0

Answered
How to Confirm My MATLAB License is Educational/Student Version?
>> getenv('MLM_LICENSE_FILE') ans = '13501@10.168.71.56:13501@10.168.231.186' You are using an education license, not a stude...

3 days ago | 0

| accepted

Answered
Polyspace 2022a on Windows Server 2022 or 2025
Polyspace 2022a is not supported on Windows Server 2022 or 2025; only on Windows Server 2019. Whether it will work is a differe...

4 days ago | 0

Answered
Unrecognized function or variable 'transformerLayer'
transformerLayer is not supplied by Mathworks. You need something like https://github.com/malkhodari/Transformer_MATLAB/blob/ma...

4 days ago | 0

Answered
How to find the adjecent values of zeros blocks inside a matrix
%guess: a block of 6 zeros should be treated as the first case ? mask2 = all(Data(:,2:4) == 0,2); mask5 = all(Data(:,5:7) == 0...

5 days ago | 0

Answered
making the graphic smaller
Generally speaking, what you would do is set the axes Position property smaller. You would probably tend to move the axes at the...

5 days ago | 0

Answered
Heatmap and surf plot of same data is looking different. Also is there a better way to 2D smooth
Notice that the heatmap shows the center of the blocks labeled 1 through 7, whereas the surf() shows 1 and 7 at the extreme edge...

5 days ago | 0

| accepted

Answered
Does anyone know how to use an IF statement with ODE's? I am trying to create an IF statement sigma > 0 , tau > 0 if dx(3,1) > 0, dx(1,1) > 0 and sigma = 0 , tau = 0 otherwise
Do not use an if statement inside an ODE... Not unless the if statement will always follow the same branch for any one invoca...

6 days ago | 1

Answered
Getting a shorter, more simple answer as output
syms x y log4 = log(sym(4)); y=(log(x)/log4)+(log(x^2)/log4); dy=diff(y)

7 days ago | 1

Answered
How to install a personnal toolbox for Matlab and simulink
Copying a Mathworks toolbox onto a system that is not licensed for it, is illegal. Copying a Mathworks toolbox onto a system t...

7 days ago | 0

| accepted

Answered
Read .txt file with dots in filename
projectdir = '.'; %directory that contains the data dinfo = dir(fullfile(projectdir, 'xx*.txt')); filenames = fullfile({di...

8 days ago | 1

Answered
Is it possible to add Interactive Tasks into App Designer
No, Interactive Tasks are specific to Live Script. You would need to build appropriate sliders and drop-down menus yourself.

8 days ago | 0

| accepted

Answered
How to prevent tabulate function returning frequencies of variables that are not present in the vector?
The problem is that v1 was created as a categorical with additional categories beyond the ones populated. I do not know of an e...

9 days ago | 0

Answered
How to generate a file with ANSI encoding in MATLAB (specifically appdesigner)?
[fid, msg] = fopen(FileName, 'w', 'n', 'US-ASCII'); Note that US-ASCII only covers the first 128 characters (0 to 127), and tha...

9 days ago | 0

Answered
finding longest length
Consider using bwskel -- possibly with the 'MinBranchLength' option.

10 days ago | 0

Answered
Change variable name based on what loop it is on
It is possible to do this. It is not possible to do this simply. We firmly recommend that you do not do this. http://www.mat...

10 days ago | 0

Answered
How to skip missing time durations in a time-series heatmap (image based figure)
imagesc(DateTime,APS_diameter,APS_data) imagesc(x,y,C) specifies the image location. Use x and y to specify the locations of th...

10 days ago | 0

Answered
How can I know the coordinates that the aircraft has moved along the path. If i don't know the position and direction?
If you do not know the speed or time of movement, then you cannot know the position at any time after the initial conditions. ...

11 days ago | 0

Answered
VxWorks libmat and libmx source code
You can use https://github.com/tbeu/matio

12 days ago | 2

Answered
Scatter plot error: not enough input arguments
f_of_x = table((1 / sigma_sqrt2pi) .* euler.^(-(ESD_mu_squared / sigma_squared_two))) ; scatter(OL_All.EquivDiameter, f_of_x)...

13 days ago | 1

| accepted

Answered
failing to normalize columns of matrix from 0 to 1
Perhaps you want something like n = A; for ii=[2 4 6 8 10 12 14 16 18 20 22 26] n(:,ii) = (A(:,ii)-min(A(:,ii)))/(max(A(:...

13 days ago | 1

| accepted

Load more