photo

Walter Roberson


Last seen: Today Active since 2011

Followers: 5   Following: 0

Message

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 2023
  • Most Accepted 2022
  • Solver
  • First Review
  • Most Accepted 2021
  • Roberson Cup
  • Most Accepted 2019
  • Most Accepted 2018
  • Most Accepted 2017
  • 36 Month Streak
  • Most Accepted 2016
  • Most Accepted 2015

View badges

Feeds

View by

Answered
I want to use a backgroudpool to open a class
variables that are class members are modeled to be received in the parfeval() as if they were save() and load() If your class c...

5 hours ago | 0

Answered
Parfor+for+if+if How to calculate variable form last if
b = []; parfor i = 1:n bt = []; for j=1:m if some_condition(i) if some_condition(i) ...

5 hours ago | 0

Answered
triple nested integral with error "Arrays have incompatible sizes for this operation."
Each call to integral supplies a vector of values to the function to be called. The vector of values is inherently of inconsiste...

6 hours ago | 0

| accepted

Answered
Highlighted numbers in Matlab
For output to the command window, see https://www.mathworks.com/matlabcentral/fileexchange/24093-cprintf-display-formatted-color...

6 hours ago | 0

Answered
I tried this code but it gives me an error
u=[30 70];% The two Angles Those look like degrees AF(m)=sum(exp(-1i*k*a*(cos(u(sourceNo)-phi_n)))); But there you are treati...

6 hours ago | 0

Answered
Why do I receive License Manager Error -9?
First delete /home/hta/.matlab/R2024a_licences/* /usr/local/MATLAB/R2024a/licenses/license.dat /user/local/MATLAB/R2024a/lice...

17 hours ago | 0

Answered
big problem with matlab and simulink
restoredefaultpath; savepath This will get rid of the warning messages. You are using a matlab path that is relevant to having...

21 hours ago | 0

Answered
Input Argument Validation Issue
diagramType (1,:) {mustBeMember(diagramType,["Flow Rate", "Velocity"])} = "Flow Rate"; You were using a cell array of string; y...

21 hours ago | 0

| accepted

Answered
dictionary() question: "Error: Output argument not assigned a value in the execution with 'x' function" - works with some inputs and not others even though code is identical.
ref = dictionary(... % creates dictionary called ref [1 2 3 4 5 6 7 8 9 10 11 12 13 14],... % keys ["cels2far" "fahr2c...

2 days ago | 0

Answered
how to plot contour for arbitrary shape (not rectangular) in matlab?
Use a rectangular array of Z, but set it to NaN outside of the area of interest.

2 days ago | 1

Answered
I need the installer for Matlab R2010b SP1
Visit https://www.mathworks.com/downloads/ In the top left, use the Select Release dropbox to select R2010bSP1 . That will tak...

3 days ago | 0

Answered
Unable to plot the two for loops together.
The two functions differ by 40 at every location. 40 is much less than the value of the function, which goes up to 5 x 10^10. A...

3 days ago | 1

| accepted

Answered
How to find the distance between two points along a curve?
Use https://www.mathworks.com/matlabcentral/fileexchange/34871-arclength

3 days ago | 0

Answered
How to create variable length buffer in Simulink for holding the value with unknown dimensions ?
You are going to have trouble with that approach unless you use dynamic memory allocation. Better is to set a maximum length be...

3 days ago | 0

Answered
How to write the sum of several matrices in Matlab ?
syms c N num_i = 3; %adjust as needed num_j = 4; %adjust as needed num_n = 10; syms x [num_i 1] syms y [1 num_j...

3 days ago | 0

Answered
what am i doing wrong?
size(a(:,i)) is a vector of length 2. You should use size(a,1)

3 days ago | 0

Answered
Error Using horzcat in MATLAB
parityMatrix = [1 1 1 0 1 0 0; 1 1 0 1 0 1 0; 1 0 1 1 0 0 1]; parityMatrix is 3 x 7 generatorMatrix = [eye(4) parityMatrix']; ...

4 days ago | 0

| accepted

Answered
Why do I get an error using estimate for an msVAR model?
By default, Y0 is the initial portion of Y (which is your Data). If your Y (Data) is sufficiently small, then Y0 might potenti...

4 days ago | 0

Answered
Error trying to start Simulink from m-file.
It sounds as if the block diagram 'Gelenkmodell' is configured with an InitFcn that invokes Reibkennlinie_festlegen but that Re...

4 days ago | 0

Answered
Please assist to resolve "magaa and mag2a" codes problems; probably FUN and fsolve, not properly sets. The mag2 has to generate 12 (Qy-variable) questions by for-end. Thanks
function [Qy, FUN] = MAGa(Qy0) tic, n=12; pipes=n; dia=n; LP=4; cCc=7; HLD=-0; ee=0.04; vs=1.00001*10^-6; ...

4 days ago | 0

| accepted

Answered
I keep getting a “cannot convert double value “…” to a handle. Does anybody know how I can fix my code in order for this to go away
Historically, up to R2014a, it was the case that graphics handles were returned as double precision numbers. This allowed constr...

4 days ago | 0

Answered
How to use integral when limits are anonymous functions
Your problem is unsolvable (in the form stated) You cannot use integral() with symbolic limits: integral() is strictly a numeri...

5 days ago | 0

| accepted

Answered
Are Windows machine for desktop real time and speedgoat using simulink real time uses same kind of processors aechitecture?
Speedgoat runs on Intel x64 class of processors, it appears to me. For different systems, I see reference to Atom processors or ...

5 days ago | 0

Answered
How to save a figure as a geotiff
geotiffwrite from the Mapping Toolbox But I don't know what it means to save an "entire" surface, as distinct from the points t...

5 days ago | 0

Answered
Why are some of my functions 'Undefined' in my standalone executable compiled from MATLAB source and pcode files?
In https://www.mathworks.com/matlabcentral/answers/1579108-how-do-i-use-and-s-flag-for-compiling-a-matlab-app#comment_2779289 ...

5 days ago | 0

Answered
Loading hex values from a file vs executing .m file that contains same values
It's a bug. It is processing all d and D as if they were e

6 days ago | 0

Answered
How do I set a read-only class to a specific value
No, there is not. And if there was a way, setting the NumBytesAvailable would confuse the system because it would either lose tr...

6 days ago | 1

| accepted

Answered
Why I am not able to open openExample('simscapefluids/ElectricVehicleThermalManagementExample') ?
If you are using an older version of MATLAB, you might need to use sscfluids_ev_thermal_management The example was renamed in ...

6 days ago | 0

Answered
HDL Coder Error: HDL code generation does not support variable-size matrix type.
temp_slice(1:16-b+1) = temp(b:16,b); % You do not declare temp_slice before use, so you are growing it within a loop, which...

7 days ago | 0

Answered
running matlab exe file results in "Too many input arguments. MATLAB:TooManyInputs error"
You need function main_file(varargin) When you compile an executable, command line arguments are passed as parameters to the m...

7 days ago | 1

| accepted

Load more