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
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...

alrededor de 4 horas 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...

alrededor de 4 horas 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 ...

alrededor de 7 horas 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....

alrededor de 7 horas 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 ...

alrededor de 7 horas 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...

alrededor de 7 horas 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...

alrededor de 8 horas 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)-...

alrededor de 8 horas 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)

alrededor de 17 horas ago | 0

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.

alrededor de 22 horas 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 ...

1 día 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...

1 día 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...

1 día 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...

1 día 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 ...

1 día 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...

1 día ago | 1

| accepted

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

1 día 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...

1 día 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...

1 día 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...

1 día 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

1 día 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...

1 día 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...

1 día 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> . ...

1 día 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 ...

1 día ago | 1

| accepted

Answered
Converting from floating point to fixed point.
The Fixed Point Toolbox fi() can be used to create a variety of fixed point formats. If you need to match a particular hardwa...

1 día ago | 1

Answered
Is there a way to simulate a struct with a array?
RTC_C_Calendar = zeros(Rows, 7,'uint32'); Now create variable names like dayOfWeek = 4; and then you can index RTC_C_CAL...

2 días ago | 0

Answered
Unrecognized function or variable 'max'.
Somewhere in that function, or in a function that the function is nested within, you assigned to a variable named "max". In doin...

2 días ago | 0

Answered
Hello all, I am getting an error "Dot indexing is not supported for variables of this type."
I do not get that error when I test with R2022b on my system. Which MATLAB release are you using? I did have to make some chang...

2 días ago | 0

| accepted

Answered
How can I use "Epoch" as a variable?
https://www.mathworks.com/help/deeplearning/ref/nnet.cnn.trainingoptionsadam.html#d124e171093 OutputFcn is defined as requirin...

2 días ago | 0

Load more