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
Function that creates figures only?
No, it is not possible in MATLAB to create a function that *only* produces plots without doing *anything* else. In the case w...

9 hours ago | 0

Answered
Imread error in Raspberry pi deployment
Two cases: If the file is a static file available to the matlab host, with constant name, then read the image and save it to ...

10 hours ago | 0

Answered
Can someone explain why I am getting the error "Not enough input arguments (line 4)"?
You tried to run the function without passing any matrix to it, and matlab complained that it could not find any input being pas...

12 hours ago | 0

Answered
There is an error in line 3. I can't figure out what the error is. Please help me find out.
You tried to run the function without passing any matrix to it, and matlab complained that it could not find any input being pas...

12 hours ago | 0

Answered
Matlab integral funtion error
f=@(x)(x.*exp((x.^2)-1))./sin(x)

12 hours ago | 1

Answered
How to elegantly open or create new file for reading and writing but not discard existing contents?
fopen with 'a' and close immediately. Then fopen 'r+' This does rely on no process deleting the file between the time it is ...

12 hours ago | 0

Answered
How to define an objective function that maximize one thing and minimize the other at the same time?
Any matrix that does not have full rank will have a determinant of 0. If there is a k in range that makes X have rank less than ...

13 hours ago | 1

| accepted

Answered
converting index to coordinates(row,col) is giving me error
[row,col]=ind2sub(sz,12744)

13 hours ago | 1

| accepted

Answered
How to maximize determinant of a matrix?
CostFunction = @(x) -det(x); % Cost Function

14 hours ago | 1

| accepted

Answered
how to use .mex file in simulation for quanser qube servo?
There is no possibility that will work. MEX files require a full MATLAB runtime, either as an actual MATLAB or as the MCR (MATLA...

14 hours ago | 0

Answered
random select n elements from n arrays
Lists = arrayfun(@(idx) randi(99,1,100), 1:50, 'uniform', 0); one_random_selection = cellfun(@(L) L(randi(100)), Lists) sort...

15 hours ago | 0

Answered
Write image info using imwrite or other method
You cannot do that using imwrite(). Most of what you want to write is EXIF information. MATLAB does not support writing EXIF i...

15 hours ago | 1

| accepted

Answered
How to store nonlcon value at solution using fmincon?
fmincon() is permitted to evaluate at locations without passing that exact location through the nonlinear constraints before or ...

17 hours ago | 0

| accepted

Answered
Tips for organizing variables in the workspace? Is there an option like "exlude capitalized variables" like python/spyder?
The below code, when executed, creates a list of links, one for each lower-case variable name. When clicked, the variable will b...

18 hours ago | 1

Answered
Is it possible to write an 'empty' cell in Matlab, not NaN?
In the below code, I examine the first numeric line, and I assume that if the second element is nan, that the first element is i...

19 hours ago | 0

| accepted

Answered
integrating a function using int
Use the techniques I show at https://www.mathworks.com/matlabcentral/answers/890822-how-can-i-integrate-a-function-which-has-thr...

1 day ago | 0

Answered
how to convert analog signal to bit stream
That is not an analog signal. An analog signal is created by outputing to a hardware device. What you have is a digital signal. ...

1 day ago | 0

Answered
Save results data to a new table each loop iteration
All_T_Departures = cell(s, 1); for i = 1 : s stuff All_T_Departures{i} = T_Departures; end If you want, at this poi...

1 day ago | 0

| accepted

Answered
Geoscatter plot with different colors
dot_color = repmat([1 0 0], length(Lock), 1); dot_color(Lock == 3, :) = [0 0 1]; lat = y; long = x; pointsize = 20; scatterm...

1 day ago | 0

Answered
Split column in table based on character
S = "51∞ 13' 51,6""" str2double(regexp(regexprep(S, ',', '.'),'[\d.]+', 'match')) Is it possible for + or - to appear? How is ...

1 day ago | 0

| accepted

Answered
Data dimensions must agree error
x and y coordinates for surf() must be either vectors or 2 dimensional, never 3 dimensional. If you have 3 independent variable...

1 day ago | 0

Answered
how can i integrate a function which has three variables but has to integrate it with respect to only one variable
You do not seem to be able to find a closed form solution with symbolic d or e. Your ilaplace() involves the sum of an expressi...

1 day ago | 0

Answered
How to replace spaces with underscores in all variable names of a table?
X.Properties.VariableNames = regexprep(X.Properties.VariableNames, ' ', '_'))

1 day ago | 1

Answered
My function creates a high oscillating unusual plot
The summary of the below investigation is that what you are observing appears to be a bug or limitation in MATLAB. It might be ...

1 day ago | 0

| accepted

Answered
how do i write this in matlab?
x = sym("x" +(0:10)); syms X E = subs(euler(0:10,X),X,x(:));

1 day ago | 0

| accepted

Answered
If I buy Matlab and Simulink Student Suite can I instal MatlabBGL library?
MatlabGBL appears to be a (free) File Exchange contribution. I am not aware of any reason that it could not be used by a Student...

2 days ago | 0

Answered
Is there anyway to Re-grid one dataset to another dataset resolution without interpolating??
origLon=-178.5:3:178.5; origLat=-89:2:89; norlon = length(origLon); norlat = length(origLat); A = rand(norlon,norlat); newLon...

2 days ago | 0

| accepted

Answered
Fsolve says 'equation solved at initial point' -- how to fix?
Your xout only involves 544 of the 562 variables. To establish this, change xss = cell2mat(xss); to xss = horzcat(xss{:}); ...

2 days ago | 0

Answered
convert from Matlab to equation (formula)
syms Y3 [1 5] syms GOD [1 5] for j=1:numel(Y3) if j==1 GOD(j)=Y3(j); else ...

2 days ago | 0

| accepted

Answered
can we use particleswarm for matrices?
No. Each array element output would be an "objective", but particleswarm() is strictly single objective. You would have to retu...

2 days ago | 0

| accepted

Load more