Community Profile

photo

Bob Nbob


346 total contributions since 2016

Bob Nbob's Badges

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

View details...

Contributions in
View by

Answered
Choose a cell array that satisfy better some criteria
Ok, here is what I have come up with. It will probably still need some tweaking, but you should be most interested in the calcul...

4 days ago | 0

| accepted

Answered
Is the find function a robust method to determine the number of specific values in a Matrix?
That method will certainly work, and I would generally use the same concept. I would just use the sum command though to avoid th...

6 days ago | 1

| accepted

Answered
can any one explain this line of the code.
Per matrix math rules, when you add a single value to a matrix, that operation is applied to all values of the matrix individual...

7 days ago | 0

| accepted

Answered
Find all the words contained in a file and make an index
You are on the right track, but you aren't calling the word index correctly. Also, I would suggest using strfind instead of the ...

16 days ago | 0

| accepted

Answered
Describing a sum with a while loop
I'm pretty sure that adding a big number to 0 will bump you over pi on the first iteration, but maybe that's just me. I would do...

17 days ago | 0

Answered
Select value from the list by defining criteria
I would use readtable to import the data, the logic indexing to narrow down the results. data = readtable('mydata.xlsx'); redu...

18 days ago | 0

| accepted

Answered
How to make matlab variables named as excel header
It sounds like readtable might be what you're looking for. I don't think it's exactly what you're asking, but it should recogniz...

21 days ago | 0

Answered
Matrix from an array
Not sure how to do it without a loop or just defining the indices, but here's something simple. A = 1:15; for i = 1:length(A)/...

22 days ago | 0

Answered
I want to circular shift rows of ' ww ' this circular shift depend on the numbers of 'r' array in the order , when the r numbers is change the circular shift is change for the ww array rows .
If I am understanding r correctly, you want to move the respective rows from their current positions to that position plus r(i)....

28 days ago | 1

| accepted

Answered
Extract Variable/column with variable name from table
I believe you can get this as a return. T.Properties.VariableNames % T is the table variable Additionally, because you're putt...

1 month ago | 0

Answered
My code is generating this error " Index exceeds matrix dimensions" . Apparently it looks fine. Still can not figure out the problem.
dfdc1(i,j) = (L/M) - M*(log(1 - c1(i,j) - c2(i,j)) - log(c1(i,j)))/M; c1 and c2 are defined as single values (0.1 and 0.0001), ...

1 month ago | 0

| accepted

Question


Extracting data from ascii file using regexp
I have an ascii file which produces the following text. 1 $FLAG1 NP1=8.,NP2=1.,P2=2.36,P3=3000000., 2 P1=0.,4....

1 month ago | 0 answers | 0

0

answers

Answered
Create variable from an excel entry
Hmm, I normally wouldn't recommend anybody do this, and others might still disagree, but I think eval will do what you're lookin...

1 month ago | 0

Answered
Removing nested for loops for quicker time
I'm shooting in the dark a bit on this one, but I think you can get rid of both loops. The only thing I'm not entirely sure abou...

1 month ago | 0

Answered
Array indexing, matrix indexing
Personally, I don't think the loops are necessary. It's not much cleaner looking than the loops, but I suspect it will run more ...

1 month ago | 0

| accepted

Answered
picking up data file in each iteration
The best way I know how to do this is by listing all of the files using dir, and then looping through the files. flist = dir('*...

1 month ago | 1

Answered
Forloop taking too long to execute in code
Some things that I have noticed. [Dim1, Dim2, Dim3] = size(blind(1).VMPData); fmap = zeros(175, 121, 139); Might be smart to ...

1 month ago | 0

| accepted

Answered
How do I add text to the top of a CSV file?
The best way I have found to do this is with a combination of fprintf and dlmwrite. While csvwrite is nice for writing out the d...

1 month ago | 0

| accepted

Answered
Can somebody explain me this answer?
a=[1 2; 3 4]; % Dictates a matrix, 'a,' and it values. Is a 2x2 matrix a(3*ones(2)) % Calls the elements of 'a' which are locat...

1 month ago | 1

Answered
Finding the maximum output value and corrosponding input for a function
I'm going to make some assumptions with this answer, but I will try to explain them. The first assumption is that you know how ...

1 month ago | 0

Answered
How do I create 2 separate matrices which are pair-matched to each other in the corresponding row from 2 original CSV files?
This is a first cut at how I would set up the loop and arguments. for i = 1:size(A,1) tmp = B(B(:,6)==A(i,6),:); C(i...

2 months ago | 0

| accepted

Question


Compare two meshes for difference in values
I feel like I should know how to do this, but apparently I don't have the patience to figure it out today. I have two 'mesh g...

2 months ago | 1 answer | 0

1

answer

Answered
large excel data into multiple excel file using xlswrite ?
M.Prasanna kumar is definitely on the right track. The only suggestion I would make is not to create multiple new matrices, just...

2 months ago | 0

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

2 months ago | 0

| accepted

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

2 months ago | 0

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

2 months ago | 0

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

2 months ago | 0

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

2 months ago | 0

| accepted

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

2 months ago | 0

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

2 months ago | 0

| accepted

Load more