Answered
nested cell arrays from tables
Without having seen your data I don't know that I will be able to come up with something perfect, but hopefully this will give y...

5 years ago | 0

Answered
how to find average signal from different excel sheets?
You can load and save the data with a for loop and then average afterwards. Alternatively, if you really want you can maintain a...

5 years ago | 0

| accepted

Answered
While Loop Keep running non stop !!
Ok, I think I got something working. The while loop was a fine choice, it was more a matter of indexing and changing things toge...

5 years ago | 1

| accepted

Answered
How to pick an Excel file using "import data" within code?
uigetfile

5 years ago | 0

| accepted

Answered
Matlab OR | operator not working
To the best of my knowledge the or operator doesn't work quite like that. You need to set separate conditions on each side of th...

5 years ago | 0

| accepted

Answered
Time-series data
The 'simplest' way to do a series of mean values is to use a for loop with the mean function. nmean = 50; % Number of values yo...

5 years ago | 0

| accepted

Answered
combining (concat) matrix in loop to get desired output plot
I suspect the issue you're having is because you're using the same C4 without attaching it to Z each time in the loop. This mean...

5 years ago | 0

Answered
How to modify this could so it can read from different files groups?
Add a second loop. Instead of just going through all files in a single loop, have an outer loop that looks for the number of gro...

5 years ago | 1

| accepted

Answered
Looping the data along with deliminaters (please find the code below)
You were on the right track with your loop that you had already, the biggest thing would be to add an index. i = 0; ...

5 years ago | 0

Answered
Data Analysis advance filtering
You can do this with logic indexing. data = ... % Your main data block conditions = data(:,1)>0.1 & data(:,2)>3 & data(:,3)<1;...

5 years ago | 0

Answered
How to modify this code to make it import values from a file?
Importing and reading the data into matlab is fairly simple, and you can take your pick of text readers. It sounds like dlmread ...

5 years ago | 1

| accepted

Answered
How can I display a value of a vector for a specific value?
This can be done with logic indexing. w2 = w(p==0);

5 years ago | 0

Answered
i have to read files in specific folder
You need to specify the path that you gathered with 'test_image', otherwise the dir command is just going to search the current ...

5 years ago | 0

Answered
Plotting data within a loop
I'm not sure if I understand exactly what you're trying to do, but here goes. nums = unique(tr(:,h)); for i = 1:length(nums) ...

5 years ago | 0

| accepted

Answered
How to loop multiple images in a subplot?
There are some small adjustments to be made for this to work. Also, I'm not sure what you want to plot your 'c' variables agains...

5 years ago | 1

| accepted

Answered
How can I split up several numbers in one cell from an excel file?
[~,~,data] = xlsread('myexcel.xlsx',range); data = cellfun(@(x) str2num(x),data); This is a first crack at the code. I'm not a...

5 years ago | 0

Answered
How to plot data from a text file with variable delimeters.
Others may have a better solution, but because of the varying delimiters I think you may have a better time with just loading th...

5 years ago | 0

Answered
Find all instances of a condition in x , replace corresponding y values with ymax (of subset or a give value) via for loop..data attached
Instead of looping through all values of h_new, you might try looping through all unique values of x. uniques = unique(x); hco...

5 years ago | 0

Answered
Read multiple files and store fitting parameters & graphs
function [results] = test(A,B,C,D,E,F,G,H,time) numfiles = 2; mydata = cell(1, numfiles); for k = 1:numfiles myfilenam...

5 years ago | 0

Answered
Simpler way of getting single column from each row?
Without having access to your data I can't test this, but my first thought is to do basically what you mentioned last. waveValu...

5 years ago | 0

Answered
Splitting up large amount of data into smaller tables based on one coloumn
Hmm, I think I kind of understand what you are trying to do. Let me know if this works. mark = 1; cll = 1; for i = 2:size(x,1...

5 years ago | 0

Answered
Unstack long XY data sets into individual tests over columns by length
Try: datatest = reshape(data,[25,3910]);

5 years ago | 0

Answered
inserting into certain locations in array
F = A; for i = 1:I F = [F(1:C*i+length(B)*(i-1)),B,F(C*i+length(B)*(i-1)+1:end)]; end

5 years ago | 0

| accepted

Answered
how to write this equation in Matlab?? please help
sigma = (I/eta).*sum(sqrt(ln((Imax(range)+Imin(range))./(Imax(range)-Imin(range)))); Something like this. Your 'range' is going...

5 years ago | 0

| accepted

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values.
You're getting the error because you are using 'beta(a,b)' inside your loop, but neither a or b are positive integers or logic s...

5 years ago | 1

| accepted

Answered
How to compare values in two arrays and find when the index of one array exceeds the index of another
i = 1; j = 1; k = 1; while k <= size(A); if A(i) >= B(j); C(k) = 0; k = k+1; j = j+1; el...

5 years ago | 0

| accepted

Answered
Excel filename from cell
xlswrite(mycell{1},data);

5 years ago | 0

Answered
Using Excel files in function
This is a quick first cut, so you will likely need to do some fine tuning of your own. I am assuming that your city distance dat...

5 years ago | 2

| accepted

Answered
Removing zeros in excel
Guillaume and Walter will probably have much better methods for doing this, but here is my first thought. [num,txt,data] = xlsr...

5 years ago | 0

Answered
Multiple conditional statements and a for loop.
You can combine multiple conditions using & (and) and | (or) (&& and || are also things). Using this method I think it's worth c...

5 years ago | 0

| accepted

Load more