Community Profile

photo

Walter Roberson


43,979 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.

담당자

Walter Roberson's 배지

  • 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
  • Thankful Level 4
  • Grand Master
  • Revival Level 4
  • Knowledgeable Level 4
  • First Answer
  • Solver

세부 정보 보기...

참여 게시물
보기 기준

답변 있음
How to know the real row and column indices of a pixel in the image
which_pixel = 37987; [r, c] = ind2sub([s(1), s(2)], which_pixel); And remember that row corresponds to Y and column correspo...

약 9시간 전 | 0

답변 있음
Error using handle.handle/set Invalid or deleted object.
In your callback for edit1 you replace the handle with the value extracted from the handle. That is confusing at the very least....

약 13시간 전 | 0

답변 있음
Regexp Find Digit between two hyphens
(?<=-)\d(?=-) Is one of the ways. (?-)\d(?-) might work

약 13시간 전 | 0

답변 있음
how to plot roots with a value used in the function?
for b = 0:10 p = [1 b -20]; r = roots(p); plot(b, r, 'k*'); hold on end hold off

약 15시간 전 | 0

| 수락됨

답변 있음
x domain for figure
I do not understand what your notation about (x covers this domain) means. However I can point out that 1:0.1:200 does not inclu...

약 16시간 전 | 0

답변 있음
signal processing buffer timeline
buffer() from the Signal Processing Toolbox can handle overlap. If you are asking about timeseries objects, then the answer is ...

약 16시간 전 | 0

| 수락됨

답변 있음
How can I get the first row of different matrices into one matrix?
for iteration = 1 : 7 this_result = something \ something_else; combined_results(iteration,:) = this_result(1,:); end...

약 16시간 전 | 0

답변 있음
Principal component analysis pca
if j==NSamples You did not assign to j by that point in the code, so it has its default value of sqrt(-1) which does not equal ...

약 20시간 전 | 0

답변 있음
How to copy and paste the code with matlab layout when asking question here?
Look in the toolbar at the section marked "CODE", and click on the icon that looks like a > symbol. That will give you a code en...

1일 전 | 2

| 수락됨

답변 있음
How can i fix the error "Error using inline Input must be a character vector." and "Error in (line 9) g=inline(f);"
inline can only be used with character vectors. Your f is a double precision scalar. If you were to format it into a characte...

2일 전 | 0

답변 있음
solving equation contains lambertw function
The Symbolic Toolbox has lambertw

3일 전 | 0

답변 있음
How to clear file name and file path information?
Use '' or "" as the value instead of []

3일 전 | 0

| 수락됨

답변 있음
why ismember({struct.name},{'*.mat'}) returns zero while struct.name='basevalues_Mean_r.mat'?
ismember() never does wildcarding. It only does exact matches. regexp() does matching but the handling of wildcards is differen...

3일 전 | 1

| 수락됨

답변 있음
How to find minimum number of largest square of 1 in an 2D bool matrix
D = bwdistgeodesic(logical(YourImage), ~YourImage); Now iterate. if there are no finite values in D, break the loop. Find the l...

4일 전 | 0

답변 있음
how can i convert 1xn to mxn matrix ?
Use persistent variables in your function. The first 19 times the function is called, just store the 100 values passed in. The 2...

4일 전 | 0

답변 있음
Mat2Cell error when splitting an image up into smaller images
function blockImages = splitImageIntoBlocks(image, blockSizeRow, blockSizeCol) % blockSizeRow: Rows in block % blockSizeCol: C...

4일 전 | 0

| 수락됨

답변 있음
How can I print each piece of data in the following colum while iterating through a for loop with fprintf
It is possible to build up tables one column at a time. In order to do so, you need to work with character arrays and sprintf, o...

4일 전 | 0

답변 있음
'trapz' to find area under curve not working
x=length(y) is a scalar value, just the length. You then pass that one length as the X coordinates and pass all of y as the Y co...

4일 전 | 0

| 수락됨

답변 있음
Extract data from cell
YourCell(~cellfun(@isempty,YourCell))

4일 전 | 0

| 수락됨

답변 있음
Getting rid of a for loop
value1 = find(input(1:end-2) > input(2:end-1) & input(2:end-1) < input(3:end)) + 1; value2 = input(value1);

4일 전 | 1

| 수락됨

답변 있음
The crtrp function from the genetic-toolbox doesn't work
Line 34 can be deleted.

4일 전 | 0

답변 있음
difference between two programs
X=imread('mosque.jpg'); The great majority of .jpg are RGB (grayscale is possible but very rare.) [n,m]=size(X); size() of a...

4일 전 | 0

| 수락됨

답변 있음
X and Y must be same length, however they already are?
You do not store any x values, so it is [] after the reading loop.

4일 전 | 1

| 수락됨

답변 있음
Why does solve() parametrize the results in the conditions?
Your nonnegative and positive constraints together with the ^2 impose boundaries. The equation has to be solved in ways that the...

4일 전 | 0

| 수락됨

답변 있음
How can I solve the error of {Undefined operator '.^' for input arguments of type 'optim.problemdef.OptimizationExpression'}?
You cannot fix that problem in that release. The first release or two of Problem Based Optimization supported only linear proble...

4일 전 | 0

답변 있음
How do I save handles struct from a GUI as a .txt file in a way I can then uploaded back to the GUI?
If you do not care whether the file is human readable, then you can try using https://www.mathworks.com/matlabcentral/fileexchan...

4일 전 | 0

답변 있음
Using a tolerance in X with fzero function (by default the tolerance is evaluated on Y axis).
There is no mathematical way for fzero to be able to reliably detect that. You are asking that if you are currently at positio...

4일 전 | 0

답변 있음
How to get out of the for cycle and start all over again?
a = 1; while true B = a*23+54 ; if B < 89 a = a+1; continue; end end Or more cleanly, a = 1...

4일 전 | 0

| 수락됨

답변 있음
How to avoid permutation condition in Genetic Algorithm?
Use A and b constraints to enforce that the values are in sorted order. x(1) < x(2) if [1 -1]*x(1:2).' < 0 so A = [1 -1 0 0 0 0...

4일 전 | 0

답변 있음
Ploting stack of matrices
If you have x being a 100 x 1 matrix, and y being as 100 x 4 x 4 matrix, then plot(x, reshape(y, size(y,1), [])) This would cr...

5일 전 | 0

Load more