Community Profile

photo

Walter Roberson


Last seen: Today Active 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. I am currently caught up to T0099119; if you are waiting on a reply from me for an older issue, please send me a reminder.

Programming Languages:
C, MATLAB, Shell, Perl, Fortran
Spoken Languages:
English

Statistics

All
  • Most Accepted 2022
  • Most Accepted 2021
  • Solver
  • First Review
  • Roberson Cup
  • Most Accepted 2019
  • Most Accepted 2018
  • Most Accepted 2017
  • 36 Month Streak
  • Most Accepted 2016
  • Most Accepted 2015
  • Most Accepted 2011

View badges

Content Feed

Answered
Channel bandwidth defination 5g
The baseband component carrier waveform in this example is characterized by multiple subcarrier spacing (SCS) carriers So this ...

8 hours ago | 0

Answered
matlab equation to latex
The latex function does not have any option to add that in automatically, so you would need to use text manipulation to add it i...

9 hours ago | 0

Answered
Error using parameters in fsolve()
When you use fsolve, the function you pass to fsolve must accept exactly one variable. If you are trying to model multiple model...

10 hours ago | 0

| accepted

Answered
How do I record from two spectrometers simultaneously
The OceanOptics programming manual is clear that the drivers are written in Java, and that The wrapper.getSpectrum() met...

1 day ago | 1

| accepted

Answered
Contour Plot with Boolean Indices (z must be at least a 2x2 matrix)
X = 1:1:5; Y = 1:1:10; [X,Y] = meshgrid(X, Y); Z = X; bool = Y <= 5; Z(bool) = Y(bool); contour(X,Y,Z)

1 day ago | 0

| accepted

Answered
Pause function in matlab for 1 millisecond
The Windows task scheduler runs every 15 ms, so you cannot get 0.001 resolution without resorting to something like busy-wait. ...

1 day ago | 0

Answered
3D plot with specific values
x = 1:7; y = 1:9; z = randi([0 800], length(y), length(x)); surf(x, y, z) Except you would use your actual Z data.

1 day ago | 0

| accepted

Answered
Putting a cell into a .mat file
%% Loading images imgfolder = 'Images'; % Checking how many items are in the folder list = dir( fullfile(imgfolder, '*.ti...

1 day ago | 0

Answered
mapping between two different matrices
b(:,a(1,1))

1 day ago | 0

Answered
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parenthe
Orientation >= -3pi/4 MATLAB does not have any implied multiplication. 3pi is invalid in MATLAB. Side note: I recommend using ...

1 day ago | 0

Answered
I no longer have acces to Matlab after a reinstall even though it was working fine before that
As a student, there are two possibilities: the student can purchase a Student License or Student Suite License, typically direc...

1 day ago | 0

Answered
Can Web App collect Environment Variables from client PC hosting web browser?
.. maybe? You can link in Javascript to App Designer, and Javascript can access environment variables https://dmitripavlutin.c...

1 day ago | 0

Answered
How to plot subplots in one figure to showing 4 seasons of chlorophyll-a data?
Try % Create a new figure fig = figure; % Add the NEM subplot ax = subplot(fig, 2, 2, 1); imagesc(ax, lon, lat, NEM); co...

2 days ago | 0

Answered
how i remove blue portion from graph
It appears that you have created a surface from a 2D array that has a row of 0 on the top and left edges. Depending exactly ho...

2 days ago | 0

| accepted

Answered
Which reference should I cite when using the fmincon with interior point method
/matlabcentral/answers/1693295-how-to-cite-matlab-2022#answer_939675 talks about how to cite MATLAB its...

2 days ago | 0

Answered
How can remove these outlier from the files sigle vector ?
clean_m = m; clean_m(k) = []; In the special case that you do not need the original m afterwards you can simplify down to m(k...

2 days ago | 0

Answered
How to increase sampling rate without change of the signal bandwidth
resample and then put it through a low pass filter at 600 Hz . The source rate is 600 Hz so logically the low-pass should leave ...

2 days ago | 0

Answered
matrix of data into a formula
This is to filt Y = ax + bn + cs + dz + constant xvec = list of valid x values, in the order used to construct Y nvec = list o...

2 days ago | 0

Answered
Plotting a figure, with the color of the plot based on a secondary variable
plot() does not have the ability to plot an individual line with different colors for different vertices. I suggest plot(theta,...

2 days ago | 0

| accepted

Answered
addpath command error after macbook update
See https://kb.synology.com/en-us/C2/tutorial/How_to_enable_Full_Disk_Access_on_a_Mac for how to grant full disk access -- thoug...

2 days ago | 0

Answered
How to match table values to variables?
als = T.Altitude; orbits = categorical(T.Orbit); [als, idx] = sort(als); orbits = orbits(idx); Now you can discretize with t...

2 days ago | 0

Answered
Modify an array elements using a for loop
As an outline, for index_variable = start_value : increment : final_value if some_array(index_variable) satisfies some con...

2 days ago | 0

| accepted

Answered
How to save a function handle to a .m file
myfunc = @(x,y,z) x.^2+y+z; writelines("myfunc = " + func2str(myfunc), "myfunc.m") %crosscheck dbtype myfunc.m

2 days ago | 0

Answered
Why is fscanf reading a 0 from my input file?
Your code has Height = fscanf(fid, '%s', 1); %Change height of Node B,D,F with a varrying theta if (Height ...

2 days ago | 0

| accepted

Answered
How do I prevent this array from displaying in the live editor?
mean_error() is not a bat365-provided function. It is a third-party function or one of your functions, and inside it there is...

2 days ago | 0

| accepted

Answered
Communication between matlab and arduino
Considering the low frequency at which you are probing (every half second or every 10 seconds), it would probably be easier for ...

2 days ago | 0

Answered
Displaying Output in Command Window
One way would be X = " Damping Ratio: " + dr + " Period: " + T + " Undamped Frequency: " + wn + " Damped Frequency: " + wd + " ...

2 days ago | 0

Answered
Error in Double Integration problem
syms q theta q becomes a scalar symbolic variable q=sqrt(qx^2+qy^2); but now it is an expression fun = matlabFunction(Phi,'V...

2 days ago | 0

Answered
How to stop pi appearing as a text in the disp result?
sympref('FloatingPointOutput', true); syms x f= cos(x); t6= taylor(f,x); val=subs(t6,x,pi/4); disp(val); I do not recommen...

2 days ago | 0

Answered
Creating an 8 bit uniform scalar quantizer
quantize() or histogram (the 'bin' output) or rescale to 0 to 255*(1-eps) and floor()

3 days ago | 0

Load more