Community Profile

# Walter Roberson

41.415 total contributions 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.

View details...

Contributions in
View by

Delete rows from an array with values from multiple columns with the same condition
mask = any(a <= -5 | a >= 5, 2); A1 = a(mask,:);

alrededor de 4 horas ago | 0

How do I get a range of data from csv with unequal columns?
T = readtable('data.csv', 'HeaderLines', 8, 'ReadVariableNames', false, 'Delimiter', ','); If you need to convert the second co...

alrededor de 5 horas ago | 0

when entering "options" into MATlab, would I enter this into the command window or edit window
You initialized a variable x0 with lower-case X, but you try to pass X0 with upper-case X into the function. You initialized a ...

alrededor de 6 horas ago | 1

how can i convert decimal to hex in simulink?
dec2hex() produces a character vector result. Character vectors cannot be carried as signals in Simulink. The closest you can ge...

alrededor de 6 horas ago | 0

How to collect user input as cell array?

alrededor de 6 horas ago | 0

How can I read certain data from my text file?
filename = 'test.txt'; fid = fopen(filename); data = cell2mat(textscan(fid, '%*[^=]=%f %f %*f %*f, %f MHz')); fclose(fid);

alrededor de 6 horas ago | 0

how to generate a matrix with 2 columns and changeable number of rows
[C1, C2] = ndgrid((0:num_increments-1) * increment_value); output = [C1(:), C2(:)];

alrededor de 6 horas ago | 0

How to solve this '''Input to EIG must not contain NaN or Inf'''. problem
num=1; if num==1 range=[0:3:15]; % range of angular spread in deg Therefore range will start with 0. for nn=1:lengt...

alrededor de 8 horas ago | 0

| accepted

symbolic derivative with constant output
matlabFunction(diff(x(t),t), 'vars', t) The result would permit one input argument. However, it would return a scalar output no...

alrededor de 12 horas ago | 0

Write a menu‐driven program to investigate the constant π
When you mix function and script in the same file then the script must be first .

alrededor de 21 horas ago | 0

Does MATLAB GUIDE GUI can work standalone when installed to Raspberry Pi using Simulink?
No, the interface to Raspberry Pi from Simulink only supports displaying image frames; there is no direct plotting support. All ...

1 día ago | 0

En-dash problem

1 día ago | 1

| accepted

How to suppress the output of an mfile?
The best approach is to rewrite the code to total the prizes instead of printing each individual success. But if for some reaso...

1 día ago | 0

Optimizing nonlinear functions with size variant input arguments
That error would happen if your objective function returns a non-scalar.

1 día ago | 0

| accepted

Is it possible to create imdistance line on a mouse click and trace the line as seen with the distance tool in imtool?
imdistline() with three parameters creates a distance tool with endpoints at the given x y position.

1 día ago | 0

Detect Serial Port disconnecttion
The only pin statuses that can be changed are DTR and RTS https://www.mathworks.com/help/matlab/matlab_external/pinstatus.html ...

1 día ago | 0

First image under the following images in GUI
persistent h if ishghandle(h); delete(h); end h = imshow(AppropriateArrayVariableGoesHere, 'Parent', handles.AppropriateAxesTa...

1 día ago | 0

Divide by Zero Warning

1 día ago | 0

How to place text in a single excel cell?
label = repmat( {label}, 5, 1)

1 día ago | 0

how to plot the graph using MATLAB guide?
Yes, for sure. Open the .fig in GUIDE and use GUIDE to add an axes and take note of the tag. Then create a "plot" pushbutton. In...

1 día ago | 1

| accepted

Poly11: "Warning: Equation is badly conditioned. Remove repeated data points or try centering and scaling."
The problem is not in the z: the problem is in the y values being very similar. Your fit can be rewritten as p = [ones(3,1), x...

1 día ago | 0

While loop not terminating when condition is met?
The only time you should ever compare for floating point equality is a situation where one of the numbers has been extracted fro...

1 día ago | 0

Using MATLAB on multiple devices with one account
Student licenses can only be used for fulfilling course requirements , never for employment or research that is not part of a co...

2 días ago | 0

After running the code for (f ') w.r.t x , we need to draw( f ' ) w.r.t G (in X-axis) while varying n=0, 0.5, 1
your G is length 100. You pass it to bvpinit so matlab knows that your ode function works with 100 derivatives. but your ode onl...

2 días ago | 1

Error Dot indexing is not supported for variables of this type
The values of global variables will not be copied to workers . They will be empty on the workers unless you assign inside the wo...

2 días ago | 0

| accepted

Signs in the output.
Not using disp. If you use fprintf then if you use a plus sign between the % and the numeric width specification then the sign ...

2 días ago | 0

Solve for symbol not finding explicit solution
Asking for an analytical solution to an equation involving floating point numbers is always a mistake. Are you working to 1 sign...

2 días ago | 0

| accepted

Using imrotate creates empty array
This seems to be an issue with imrotate when passed an array in which either the first or second dimension is 1, and the angle i...

2 días ago | 0

How to delete empty cells in a cell array?
What you show us for input is a 6 x 4 cell array, some entries of which happen to contain empty arrays. What you show us for de...

2 días ago | 0

| accepted