답변 있음
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...

5년 초과 전 | 1

답변 있음
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), ...

5년 초과 전 | 0

| 수락됨

질문


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

5년 초과 전 | 답변 수: 0 | 0

0

답변

답변 있음
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...

5년 초과 전 | 0

답변 있음
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...

5년 초과 전 | 0

답변 있음
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 ...

5년 초과 전 | 0

| 수락됨

답변 있음
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('*...

5년 초과 전 | 1

답변 있음
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 ...

5년 초과 전 | 0

| 수락됨

답변 있음
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...

5년 초과 전 | 0

| 수락됨

답변 있음
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...

5년 초과 전 | 1

답변 있음
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 ...

5년 초과 전 | 0

답변 있음
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...

5년 초과 전 | 0

| 수락됨

질문


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

5년 초과 전 | 답변 수: 1 | 0

1

답변

답변 있음
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...

5년 초과 전 | 0

답변 있음
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 ...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전

문제를 풀었습니다


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

5년 초과 전

답변 있음
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...

5년 초과 전 | 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 ...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전 | 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...

5년 초과 전 | 0

| 수락됨

더 보기