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.

Statistics

All
  • Roberson Cup
  • Most Accepted 2019
  • Solver
  • 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

View badges

Content Feed

View by

Answered
Install add-ons through commandline/headless?
It is possible, using matlab.addons.install() https://www.mathworks.com/help/matlab/ref/matlab.addons.install.html However, t...

circa un'ora ago | 0

Answered
how to get the position of a line in from a 2D matrix data.
See improfile() https://www.mathworks.com/help/images/ref/improfile.html#d123e161936 Note that you pass in endpoints of line s...

circa 2 ore ago | 0

Answered
How to do iteration until certain tolerance is achieve?
while abs((psic/psit)+(1/(2*sigma)))<tol That tells us that you are looking for (psic/psit)+(1/(2*sigma)) to become as close to...

circa 2 ore ago | 0

Answered
How do I gapfill a vector only if gaps (NaNs) are 10 elements or less?
format short N = 10; x = [1,2,3,5,7,9,10,9, NaN,NaN,5,3,2,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,NaN,12,13,14,15,16]; mask...

circa 2 ore ago | 0

Answered
Getting different results from function handle & syms for a same equation. How to avoid it?
Remember that when you mix floating point numbers into a symbolic expression, that MATLAB uses the default conversion of floatin...

circa 3 ore ago | 0

Answered
fsolve stopped because the problem appears regular
format long g omega0=2*pi*599.585e12; data=(2+0.5i)^2; syms x [1 2] rf = rfpnk(x,omega0,data) sol = solve(rf) [sol.x...

circa 3 ore ago | 0

Answered
Combining two surface plots
You can ax = gca; yellow = surf(ax, x, p, a); hold(ax, 'on') M = [1 0 0 1; 0 0 1 0; 0 1 0 0; 0 0 0 0]; hg = hgtransform(ax,...

circa 3 ore ago | 0

Answered
I want to generate Three different random Communication Channels and sort it. Please help
h1=(randn(1)+1j*randn(1)); h2=(randn(1)+1j*randn(1)); h3=(randn(1)+1j*randn(1)); z=sort([h1,h2,h3]) Note that by default, so...

circa 4 ore ago | 0

| accepted

Answered
What is the difference between the effect of clear and clearvars?
@Kien Pham asked above whether there was a timing difference between clear and clearvars. The answer astonished me: there is a ...

circa 4 ore ago | 1

Answered
plz help how can use go to in MATLAB
MATLAB itself does not have a GO TO, and never will. Simulink diagrams sort of have a GO TO but it does not affect flow of co...

circa 6 ore ago | 0

Answered
Getting error message, "Execution of script bar as a function is not supported".
which -all bar will show you that you have a bar.m in your path that is not the Mathworks bar function

circa 10 ore ago | 1

| accepted

Answered
How do I get a "≤" sign to appear in my function's HELP documentation?
<= is not part of CP1252 https://en.wikipedia.org/wiki/Windows-1252 I am using 2016b In that release, MATLAB did not use UT...

circa 12 ore ago | 0

Answered
how to count further?
Where do you transition from state2 to something else? Are you trying to count all the rising edges, ignoring the falling edges...

circa 13 ore ago | 0

Answered
quickest way to convert hex to a 16 bit signed integer
format long g N = 100000; HC = ['0':'9', 'A':'F']; data = HC(randi(16, N, 4)); timeit(@() typecast(uint16(hex2dec(data)),'...

circa 13 ore ago | 1

Answered
Left and right sides have a different number of elements
x=[11500.2 11477.9 11417.3 11426.4 11413 11382.9 11375.1 11347.9 11351.1 11329.3 11318.9 11343.4 11360.7 11378.4 11414.2 11408.2...

1 giorno ago | 0

Answered
Could anyone help me how to save the bar graph in png format.
%applyhatch is a File Exchange Contribution. We need to install it to %generate the graphics to demonstrate the save techniques...

1 giorno ago | 0

Answered
If you're using tic, toc, and var=input('prompt'), is there a way for toc to interrupt the user input if they take too long to answer?
Two timer based solutions are shown in https://www.mathworks.com/matlabcentral/answers/119067-how-can-i-set-a-time-for-input-wai...

1 giorno ago | 0

Answered
Could someone explain the error: "Array indices must be positive integers or logical values," and also how I'd go about fixing it?
contents = cellstr(get(hObject, 'string')); UnitType = contents(get(hObject, 'Value')); In the situation where nothing is sele...

1 giorno ago | 0

Answered
Assignment between unlike types is not allowed for two function in a loop
It looks like your function is returning struct variables. When you have code of the form struct1(index) = struct2 wh...

2 giorni ago | 0

| accepted

Answered
Error while evaluating UIControl Callback.
You need to contact your company to have them authorize you to use that toolbox.

2 giorni ago | 0

Answered
Using linspace outside of field data areas?
Use scatteredInterpolant() with the Extrapolation Method set to 'none'

2 giorni ago | 0

| accepted

Answered
How to remove an unwanted horizontal line at a specific domain on the x-axis?
Your size variable is not in sorted order, but you are using it as the independent variable for the plot, so MATLAB has to draw ...

2 giorni ago | 0

| accepted

Answered
Constraints used but not applied (beginner)
E_pv = npv * Apv * Iir(1 - 0:005(Ta((t) - 25)); %all the varibles have scalar values That is invalid syntax. 0:005(Ta((t) - 25)...

2 giorni ago | 1

Answered
Reistall matlab with the same license
Yes. Unless the details of the license changed in R2021a (I have not checked the wording for that release), then students are n...

2 giorni ago | 0

Answered
error Unbalanced or unexpected parenthesis or bracket
c1 = 1000*Q1*e./(4*pi*(xx1>0).*xx1*sqrt(Dy*Dz)*v).*exp(-v*yy1.*yy1./(4*Dy*(xx1>0.*(exp(-v*(z-H1)*e./(4*Dz*(xx1>0).*xx1)).*(exp(-...

2 giorni ago | 0

Answered
Auction Algorithm is not converging due to round off error in dell 7820
min() never does rounding. min() of a single parameter uses bit-for-bit comparisons (since the entire array is always the same d...

2 giorni ago | 1

Answered
Can I install a unit of MATLAB for PC to the server?
Mathworks has available several related licenses for that purpose: Networked Named User: the license is made available through ...

2 giorni ago | 0

| accepted

Answered
Why is x(:) so much slower than reshape(x,N,1) with complex arrays?
Nx = 256; Ny = 256; Nz = 128; N = Nx*Ny*Nz; A0 = rand(Nx, Ny, Nz); timeit(@() use_colon(A0, N), 0) timeit(@() use_resh...

2 giorni ago | 0

Answered
openmp options changed by MATLAB?
Roberto, did you deliberately configure your cluster profile (which might be profile named 'default') to provide more than one t...

2 giorni ago | 0

Answered
What functions should be moved to basic MATLAB?
wrapToPi() has obvious uses outside the Mapping Toolbox https://www.mathworks.com/help/map/ref/wraptopi.html

2 giorni ago | 0

Load more