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

View badges

Content Feed

View by

Answered
Select multiple radiobutton at the same time
hf=exemple; You run the code in exemple and it returns. You are no longer running any code inside exemple but it set up sev...

ungefär 6 timmar ago | 0

Answered
Cannot execute Figure(3).
q=[0.000000025;0.000000034;0.000000042]; %Calculate manually on 0.75Q, Q, 1.25Q; f=1-exp(-(((k*pi*d)/q))*z); The / opera...

ungefär 7 timmar ago | 0

Answered
Unrecognized function or variable 'Fid2'.
l = fgetl(FID); if strcmp(l(1),'**') fgetl returns a character vector (except at end of file) l(1) will be a sing...

ungefär 9 timmar ago | 1

| accepted

Answered
Simulink files compatibility with MATLAB versions
Yes. The Function Block (not the same as MATLAB Function Block) no longer exists. You might want to hold on to one of your previ...

ungefär 9 timmar ago | 0

Answered
GPU coder :basic Code Generation failed
I think Cuda Toolkit 11.6 is not supported in your release. I am having difficulty finding the toolkit version that is supported...

ungefär 10 timmar ago | 0

Answered
which part of my logic is wrong?
You used the / operator. The / operator is matrix division. P/Q is approximately P*pinv(Q) . In situations such as yours with ro...

ungefär 17 timmar ago | 1

| accepted

Answered
trisurf: Removing Unwanted Lines and Surfaces from Irregular 3D Plot
You should not do this at the trisurf() level; you should be creating a modifed triangulation https://www.mathworks.com/help/ma...

ungefär 17 timmar ago | 0

Answered
3D plot in Simulink
XY Graphs are specifically documented to open a different window for each block, and only permit scalar X and scalar Y. But you ...

ungefär 20 timmar ago | 0

Answered
Calculating Hessian without using symbolic functions
No, not unless you can calculate it by hand ahead of time using some other set of external tools. You can estimate the Hessian....

ungefär 20 timmar ago | 0

Answered
out of memory error
Pre-allocate out to the final size. This will reduce temporary memory use. Also, using : is more memory efficient than indexing ...

ungefär 20 timmar ago | 0

Answered
How do I prevent MATLAB from converting characters into their ASCII equivalent?
zeros() creates a numeric array, with a default data type of double() Any time you assign a char() into a numeric array, MATLAB...

ungefär 20 timmar ago | 0

Answered
Incorrectly getting a blank video when using videowriter function to display data
You are not changing the display between getframe() so all of the frames would be the same. If you have pre-computed frames sto...

ungefär 21 timmar ago | 0

Answered
Linear constraints using lsqnonlin
lsqnonlin() does not support constraints other than upper bound and lower bound. I suggest you minimize the norm() of F(x,y,z)-...

ungefär 21 timmar ago | 0

Answered
i couldn't understand the problem in it
dy = zeros(12,1); You initialize 12 return values but you then only store up to dy(9). You only need zeros(9,1)

en dag ago | 0

| accepted

Answered
minibatchqueue or arrayDatastore drops my data precision from double to single
Gpu training does not support double precision. If you look at the available options, precision cannot be selected.

en dag ago | 0

Answered
How do I plot a summation equation?
You are summing exp() of values that are purely imaginary and are mostly not integer multiples of π. The individual entries are ...

en dag ago | 0

Answered
How to change the matlab maximum name length?
No there is no way to do that. The variable names and field names of struct and property names of objects are all stored as fixe...

en dag ago | 0

Answered
dividing defined variable by named variable
a=sqrt((d.^2)*(3^2)) 3^2 is 9 so inside the sqrt() you have 9*d^2. sqrt() of that is sqrt(9)*sqrt(d^2). For positive d that...

en dag ago | 0

Answered
What is the type or language of programation that MATLAB use? language like C++, JavaScript etc.
The internal implementation of MATLAB is written in (alphabetical order) * ActiveX / DCOM * C * C++ * Fortran * Java * M...

en dag ago | 0

Answered
How can I read values from an ultrasonic sensor connected to an Arduino in Matlab app designer?
EditFieldValueChanged is only invoked when the user edits the field. You need to update the field as you store new app.distance ...

en dag ago | 0

Answered
Must be a text scalar when using eval() function problems?
eval() is defined *only* for character vectors and string scalars. It is not defined for numeric values, and it is not defined f...

en dag ago | 1

| accepted

Answered
Issue with readtable() reading strings
filename = 'as appropriate'; opt = detectImportOptions(filename); opt = setvartype(opt, 'Note', 'char'); T = readtable(filena...

2 dagar ago | 0

Answered
Array indices must be positive integers or logical values. Error in untitled4 (line 9) max(num)=0;
The syms is unused by the remainder of the code. You are not validating that the user is entering a scalar positive integer. Y...

2 dagar ago | 0

Answered
Can i convert a binary matrix to a function?
Yes, you can return a matrix from the function. However, that would be considered multiple objectives, and you would need to use...

2 dagar ago | 0

Answered
Find the key for vector transformation
You do not want to minimize B-A(KEY): those are vectors and you cannot minimize a vector. A= [25 21.2 0.4 3.5 15 60 14 8.1 16.9...

2 dagar ago | 0

| accepted

Answered
Unable to resolve the name dsp.iFFT
The function name is dsp.IFFT -- upper case I rather than lower case i

2 dagar ago | 0

Answered
Pick just some elements of a 3Dmatrix and then reshape them in the original size
Assign tuttiE<max(tuttiE) into a variable, and use it to index tuttiE for clusterdata() purposes. Then create an array of zer...

2 dagar ago | 0

| accepted

Answered
i want to draw a half staircase sinusoidal curve
Use the Computer Vision insertShape function requesting a 'line' . The coordinates for the line would need to duplicate every m...

2 dagar ago | 0

Answered
Error using imwrite command
MATLAB cannot automatically determine the image type being requested when you ask for a file name with extension jpg<SPACE> . ...

2 dagar ago | 0

| accepted

Answered
Constrained optimization on a finite set
https://www.mathworks.com/help/optim/ug/optimvar.html#mw_cedf0526-03c6-46b9-aba3-a694d89d1003 shows how to constrain a optimvar ...

2 dagar ago | 1

| accepted

Load more