Bob Thompson
Followers: 0 Following: 0
Feeds
답변 있음
How to fill array with value 0 if function returns empty []
I admit I don't entirely understand the math here, so there may be a more elegant solution. My MATLAB access is also currently d...
How to fill array with value 0 if function returns empty []
I admit I don't entirely understand the math here, so there may be a more elegant solution. My MATLAB access is also currently d...
2년 초과 전 | 0
질문
Find string of relative directory with regexp
I have a string in a file that I want to find and replace. The string contains a directory that is defined relative to another l...
2년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to exclude specific results from dir
I have a series of folders: S1 A1 A1b1 A1b2 A1b1_test A2 A2b1 A2b2 ...
거의 3년 전 | 답변 수: 1 | 0
1
답변답변 있음
Repeating while loop to form matrix
You've only indexed one value (ii = 3 means it will only ever be 3), which is why you're only getting one line completed. for i...
Repeating while loop to form matrix
You've only indexed one value (ii = 3 means it will only ever be 3), which is why you're only getting one line completed. for i...
3년 초과 전 | 0
질문
Extracting files of the same name only from the first level of subdirectories
I have a folder structure with three levels, A, B, and C. Level A only contains the folders for B, and each B folder contains a ...
3년 초과 전 | 답변 수: 1 | 0
1
답변답변 있음
How to perfrom indexing on nested cell array ?
Are you sure things are set up the way you intend? Here are some things I've noticed: 1) Your main problem is that you're defin...
How to perfrom indexing on nested cell array ?
Are you sure things are set up the way you intend? Here are some things I've noticed: 1) Your main problem is that you're defin...
3년 초과 전 | 1
답변 있음
Read in only certain numbers from a txt file.
What does your code look like so far? What are you using to extract the numbers? Off the top of my head, I recommend using some...
Read in only certain numbers from a txt file.
What does your code look like so far? What are you using to extract the numbers? Off the top of my head, I recommend using some...
3년 초과 전 | 0
답변 있음
symmetry x axis y axis plotting
Without seeing the code I can't be very specific. Something like the following should work: figure hold on plot(zone1x,zone1y...
symmetry x axis y axis plotting
Without seeing the code I can't be very specific. Something like the following should work: figure hold on plot(zone1x,zone1y...
3년 초과 전 | 0
| 수락됨
답변 있음
Vectorize a double loop
Does this work? I haven't been able to test it. M((cell-1)*n^2+(1:n-2)*n+(2:n-1),(cell-1)*n^2+(1:n-2)*n+(2:n-1)-1) = 1/d...
Vectorize a double loop
Does this work? I haven't been able to test it. M((cell-1)*n^2+(1:n-2)*n+(2:n-1),(cell-1)*n^2+(1:n-2)*n+(2:n-1)-1) = 1/d...
3년 초과 전 | 0
답변 있음
Find index where condition is true, or end of matrix
I appreciate the input, this is the best I was able to do: statestart = [find(Results.state==5,1) numel(Results.state)]; state...
Find index where condition is true, or end of matrix
I appreciate the input, this is the best I was able to do: statestart = [find(Results.state==5,1) numel(Results.state)]; state...
3년 초과 전 | 0
| 수락됨
질문
Find index where condition is true, or end of matrix
I have an array that represents the time based states of an analysis. I want to search the array for where a certain state start...
3년 초과 전 | 답변 수: 2 | 0
2
답변답변 있음
Index in position 1 exceeds array bounds (must not exceed 1).
You're getting the error because your e input is size 1x8, but u = e(2,j) is trying to call the second row of e, which doesn't e...
Index in position 1 exceeds array bounds (must not exceed 1).
You're getting the error because your e input is size 1x8, but u = e(2,j) is trying to call the second row of e, which doesn't e...
3년 초과 전 | 0
답변 있음
How do I use matlab to plot a graph where the x,y axes do not intersect?
Create your figure first, then create the axes. This will allow you to specify what they are before the data gets populated, and...
How do I use matlab to plot a graph where the x,y axes do not intersect?
Create your figure first, then create the axes. This will allow you to specify what they are before the data gets populated, and...
3년 초과 전 | 0
답변 있음
modifying variable names to enable indexing in a loop
Adjust your variable to index into a multi-dimensional array. I recommend using the first dimension, rows, for the final number ...
modifying variable names to enable indexing in a loop
Adjust your variable to index into a multi-dimensional array. I recommend using the first dimension, rows, for the final number ...
3년 초과 전 | 1
| 수락됨
질문
Difference between switch and if
I just ran across switch being used in a code and am wonder how it differs from if. The use of switch may not have been well set...
3년 초과 전 | 답변 수: 2 | 0
2
답변답변 있음
Remove corresponding values in two arrays
How can I do this easily? Please feel free to elaborate what 'easily' means to you. Your logic for A seems pretty well set up t...
Remove corresponding values in two arrays
How can I do this easily? Please feel free to elaborate what 'easily' means to you. Your logic for A seems pretty well set up t...
3년 초과 전 | 0
질문
Shift sheets of matrix individually without loop
I've seen this question a couple of times, but the questions seemed to be old, and used arrayfun which seems like just another l...
3년 초과 전 | 답변 수: 0 | 0
0
답변답변 있음
Combine rows and average contents in table
I'm not sure how you're defining the time time ranges but here's some psuedo code that I thought about for the rest of the proce...
Combine rows and average contents in table
I'm not sure how you're defining the time time ranges but here's some psuedo code that I thought about for the rest of the proce...
3년 초과 전 | 0
질문
Why does dir command find files not following pattern in Windows?
I have series of files that I am trying to pick up with a dir command. I'm able to get the files, but I'm also picking up one ex...
3년 초과 전 | 답변 수: 1 | 0
1
답변답변 있음
For loop indexing problem
Part of the problem is that you're trying to push a 749x2 matrix into an array of 749x1 size (BMactive(:,jj) only calls one colu...
For loop indexing problem
Part of the problem is that you're trying to push a 749x2 matrix into an array of 749x1 size (BMactive(:,jj) only calls one colu...
3년 초과 전 | 1
| 수락됨
답변 있음
easy indexing lon-loop versus loop
I think the issue is with your loop definition. You define y1 to be length(x)+M1 long, but n is defined from M1+1 to length(x). ...
easy indexing lon-loop versus loop
I think the issue is with your loop definition. You define y1 to be length(x)+M1 long, but n is defined from M1+1 to length(x). ...
3년 초과 전 | 0
질문
Interpolating non-independent values
I'm not really sure how to ask this in a concise enough way to find it elsewhere, so I'm just going to ask a new question. I ha...
3년 초과 전 | 답변 수: 2 | 1
2
답변답변 있음
Creating Several Data Sheets
If you want to performa the reorganization with MATLAB here is an outline of one possible process to do so. 1) Read that three ...
Creating Several Data Sheets
If you want to performa the reorganization with MATLAB here is an outline of one possible process to do so. 1) Read that three ...
3년 초과 전 | 0
답변 있음
Counting variables, and getting last column of matrix within specific criteria
I'm not sure I entirely understand the issue with 6.9418. Are you saying you only want 6.9418 as the magnitude, even though you ...
Counting variables, and getting last column of matrix within specific criteria
I'm not sure I entirely understand the issue with 6.9418. Are you saying you only want 6.9418 as the magnitude, even though you ...
3년 초과 전 | 1
| 수락됨
질문
Linux vs Windows system commands
This may not be the forum for this, I can remove the question if it's not, but I have a script that runs a series of system comm...
3년 초과 전 | 답변 수: 1 | 0
1
답변질문
array2table won't accept variable name input
I am attempting to turn an array into a table before I output it into a file, and I am running into an error when I attempt to t...
3년 초과 전 | 답변 수: 2 | 0
2
답변질문
Looking for an alternative to regexp.
I'm looking for an alternative way to parse through strings to find bits of information, or for a way to use regexp that doesn't...
3년 초과 전 | 답변 수: 2 | 0
2
답변질문
Debugger not stopping on marker
I have a short code that I have put a debug marker in, before running it, but when it gets run the code moves past the marker an...
3년 초과 전 | 답변 수: 1 | 0
1
답변답변 있음
Terminating a game of tic tac toe if two entries are entered in the same cell
John has a pretty good idea with that. If you put in a logic check and a loop, you don't even need to actually quit the game, j...
Terminating a game of tic tac toe if two entries are entered in the same cell
John has a pretty good idea with that. If you put in a logic check and a loop, you don't even need to actually quit the game, j...
3년 초과 전 | 0
| 수락됨
답변 있음
save matrices from loop
I could be wrong, but it seems like you just need to index flow. vidReader = VideoReader('Tennis Ball.avi'); % Read the Video ...
save matrices from loop
I could be wrong, but it seems like you just need to index flow. vidReader = VideoReader('Tennis Ball.avi'); % Read the Video ...
3년 초과 전 | 0
| 수락됨