Community Profile

photo

Bob Nbob


324 2016 年以降の合計貢献数

Bob Nbob's バッジ

  • Knowledgeable Level 4
  • Pro
  • Solver
  • Revival Level 2
  • 12 Month Streak
  • Thankful Level 2
  • First Answer

詳細を表示...

貢献した分野
表示方法

回答済み
Compare row by row of two arrays and write in array, if there are matching values
I think intersect is a much better choice here than find. Because you are looking for specific row results I'm not sure how to ...

1日 前 | 0

| 採用済み

回答済み
selecting columns with certain time period and placing in new array
In general, I would make an effort to extract the data using logic indexing. You can certainly convert the mdy into a datetime v...

1日 前 | 0

回答済み
Name Structure in a for loop
I'm going to guess that this line is the incorrect one: name.(field_names(k,1))(count,1) = data_struct_sorted_unique.(field_nam...

7日 前 | 0

回答済み
Empty index from loop
find(dates==i) This is not looking for the actual dates, because i is just an index integer, i.e. on the first loop you are loo...

8日 前 | 0

回答済み
How to find and remove certain text from a text file
As I mentioned, the command would only work for one line at a time. You would need to loop it to get all the lines. fid = fopen...

12日 前 | 0

| 採用済み

回答済み
With activeX server running Excel, access the cells syntax on range property
I used to do this by creating a variable ('range' for simplicity) that was defined with string concatenation. Because you want t...

13日 前 | 0

回答済み
Operations using individual elements in a matrix?
The problem is because you are looking to index X(ii, jj) but you have defined the bounds of ii and jj as the number of elements...

14日 前 | 0

| 採用済み

回答済み
.Selecting the data series for next loop
Is y a single value? I'm not entirely sure I know what you're asking for, but maybe something like this can work? y = randi(10...

14日 前 | 0

| 採用済み

回答済み
Detect maximum value of multiple Excel-Files
The cleanest way that I can think of doing this is to just loop things. You may need to change the range you are looking to find...

14日 前 | 0

解決済み


Find the nearest prime number
Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

19日 前

解決済み


Extra safe primes
Did you know that the number 5 is the first safe prime? A safe prime is a prime number that can be expressed as 2p+1, where p is...

19日 前

回答済み
Create an excel sheet from data stored in variable used in a for loop
From what you've posted, which is a bit vague, it seems like all you need to do is index your results and then use xlswrite to p...

20日 前 | 0

| 採用済み

回答済み
Dot indexing not supprted for variables of this type.
You're getting the error because you're calling params like a structure, 'params.DoD_phi(1),' but you previously defined params ...

20日 前 | 1

| 採用済み

回答済み
Reading a complex text file and building a matrix
I have not been able to utilize your example file, it's a limitation on my end. That being said, this is how I would look at do...

21日 前 | 1

回答済み
Import/convert an Excel file with more worksheets into a structure with more fields, one field for each worksheet
Generally, importing multiple excel sheets is done by calling the xlsread command multiple times. One of the flags of the comman...

25日 前 | 0

| 採用済み

回答済み
Manipulation of multiple cell arrays
1) You don't want an & for this type of logic, because you want to remove anything that is less than 0.9, OR greater than 1.1. I...

28日 前 | 0

| 採用済み

回答済み
how can we know the index of this data? for example,i want know index of H2O
I would suggest using strfind to look up a string. result = strfind(species,'H2O');

28日 前 | 0

回答済み
Avoiding 3 nested for loops?
At first glance, I would agree that you can vectorize the two outer loops. After you create ctmd you can modify mtmd to be a rep...

約1ヶ月 前 | 1

| 採用済み

回答済み
plot for loop results
Put your plot command inside the first loop, then index Kdg to only be for k elements. for k = 1:numfiles .... plot(t...

約1ヶ月 前 | 0

| 採用済み

回答済み
How to parse text data
I need next steps ◾Convert Datacontent into cell's - like timestamp , message data-1,message data-2 ◾Put cell in pro...

約1ヶ月 前 | 0

回答済み
Problem with data indexing in nested structure
In my experience, nested structures do a really good job of intuitively organizing data, but are difficult to work with in matla...

約1ヶ月 前 | 0

回答済み
Sorting matrix based on the sum of the rows
A = randi(100, 10, 10); sums = sum(A,2); [~,I] = sort(sums); B = A(I',:); There may be a better way of doing this, but this ...

約1ヶ月 前 | 1

回答済み
Graph not large enough to contain thick line
Try here.

約1ヶ月 前 | 0

回答済み
New to MATLAB so need help with following
For the most part, the syntax on this is pretty straight forward. The equation itself will look very similar to how it is writte...

約2ヶ月 前 | 0

回答済み
Automatic building of an array
'T_Vorgabe{c}(1,:) = S(c1,1); I just need to know whether it is correct or not!. ' As I mentioned before, the concept is soun...

約2ヶ月 前 | 0

| 採用済み

回答済み
Can I use for loop to do the same process to four tables?
To the best of my knowledge it is not possible to dynamically loop through variables. I would suggest combining the tables into ...

約2ヶ月 前 | 0

| 採用済み

回答済み
problem to get all values in for loop
I suspect you're getting the same result because you aren't changing the value of pair21 within the final loop. for L=1:length(...

約2ヶ月 前 | 0

| 採用済み

回答済み
Pulling out a number and a date + time from text file after specific lines
The most reliable way that I know of to get this is by using fgetl. file = fopen('mytextfile.txt'); % Access the file line = f...

約2ヶ月 前 | 1

| 採用済み

回答済み
How to create variable names
I'm not sure why this got resurrected more than three years later, but I guess I might as well put an answer on it, for future s...

約2ヶ月 前 | 0

回答済み
Can somebody explain me this code?
arrayfun is basically a for loop for all elements of an array. This code is doing the following, starting from the outside: 1)...

約2ヶ月 前 | 0

Load more