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
addpath problem when building a standalone exe
https://www.mathworks.com/help/compiler/unsupported-functions.html Functions Not Supported for Compilation by MATLAB ...

13 hours ago | 0

Answered
Error_Unable to perform assignment because brace indexing is not supported for variables of this type
Repaired code, no loop. i = size(platemap,1); [S{i,1}, G{i,1}] = cellcyclestages('f',Data{i,1},params,opts); You do not need ...

13 hours ago | 0

Answered
I cannot understand why I'm getting the error in this code
endfor and endfunction are not part of the MATLAB language. I believe they are part of a different programming language named oc...

14 hours ago | 1

Answered
I am struggling to get this code to work.
You might be interested in using montage(). The output of montage() is an image() object that you can get the CData for, and the...

14 hours ago | 0

Answered
Write matlab program to plot discrete-time sinusoid x[n]=cos(πn/12+π/4)
Hints: https://www.mathworks.com/help/matlab/ref/pi.html https://www.mathworks.com/help/matlab/ref/double.cos.html https://...

16 hours ago | 0

Answered
How can I convert multiple .cti files to .txt files
See https://www.mathworks.com/matlabcentral/answers/161468-reading-undelimited-comma-numbers#answer_157856 for some code that co...

16 hours ago | 0

Answered
Integral3 is taking forever to finish computing integral
The nested integral (6 total levels) just takes a long time to compute.

16 hours ago | 0

Answered
finding multiple datetime cells from a table
Convert to timetable and use a timerange() https://www.mathworks.com/help/matlab/ref/timerange.html The end date would be the ...

18 hours ago | 0

| accepted

Answered
how to find integral
First let us enter the equation in without losing precision S = '74513/(10000*sign(0.99966444607707671821117401123047*e + 15567...

19 hours ago | 0

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

1 day 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 a ...

1 day ago | 0

| accepted

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

1 day ago | 0

| accepted

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

1 day ago | 0

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

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

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

1 day ago | 1

| accepted

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

1 day ago | 1

| accepted

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

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

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

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

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

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

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

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

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

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

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

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

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

2 days ago | 0

Load more