Answered
save all for loop data into workspace
Easiest way to do this is with indices within your code. Instead of having R be the value you are writing, you want to write R(c...

8 years ago | 1

| accepted

Answered
ActiveX to open the selected spreadsheet in Matlab
ActiveX is very powerful for manipulating the actual excel document through excel, but takes a while to learn. If you are just l...

8 years ago | 0

Answered
How to do interpolation
I would suggest making a new array to set your highest and lowest values. Then you can use the interp1() function. https://www.m...

8 years ago | 0

| accepted

Answered
How can I calculate mean and standard deviation of each column in cell arrays with for loop?
You've really already got your indexing loops set up, you just need the equations. for ii=1:51 % Loops through each row in ...

8 years ago | 0

Answered
Unsure why my for loop isnt working
One of the problems you're going to have is in your number of points definition. NPTS = size(ft,2); Your for loop looks ...

8 years ago | 0

Answered
How to enable function is condition is true and ignore its updates till another condition is true
output = 0; if input1 == input3; output = 1; if input1-input2 > 5; output = 0; end end ...

8 years ago | 0

Answered
Read in, edit, write out
For text files I usually read the file in with textread, and then run through for the lines I'm looking for using fgetl() which ...

8 years ago | 0

Answered
how to index next element in a vector/ row in a table
Ok, I'm not entirely sure what exactly you're trying to accomplish, since you seem to be looking forward for greater values, but...

8 years ago | 0

| accepted

Answered
Write the selection of a loop in excel
If I understood your question correctly, you want to keep all of the data, but sort based on data in the fourth column. cla...

8 years ago | 0

| accepted

Answered
Loop a script and save each output as a new excel file
[filename, filedir] = uigetfile('*.txt','MultiSelect','on'); % UI to select isothermal files filepath = fullfile(filedir,...

8 years ago | 0

Question


Solve array values starting with center value
I have an array of zeroes with two intersecting lines of values. I would like to solve for each of the remaining zero values wit...

8 years ago | 0 answers | 0

0

answers

Answered
How can i group data according to size i impose?
V = [ 61 65 68 100 ]; for I = 1:length(V); if V(I)<= 65; C(I) = 1; else C(I) = 2; ...

8 years ago | 0

Answered
How can I run an .exe from Matlab that requires user input?
Before you run the .exe create an ascii file (text file is fine) which contains the inputs you need for the .exe. Make sure you ...

8 years ago | 0

Answered
Nested For Loop Help Please
In order to store the initial data I would suggest using a cell array. A(T0) = [your array here]; Then when you call the...

8 years ago | 0

Answered
Hi everyone, I need your help on my two questions.
Q1 You're getting dimension mismatch because you're trying to put multiple sheets of A into a single sheet of k. k(:,:,y...

8 years ago | 0

Answered
Automatically entering inputs into executable code at prompt
Ok, I figured out how to do this. Basically instead of entering the inputs as individual commands the inputs are entered into a ...

8 years ago | 4

Answered
How can i get specific rows of a matrix without using loops?
c = a(b,:);

8 years ago | 0

| accepted

Question


Automatically entering inputs into executable code at prompt
I have an old executable code, say run.exe, which asks for user inputs. I would like to create a script which automatically runs...

8 years ago | 1 answer | 0

1

answer

Answered
how to read multiple csv files and save the data
Before you start the for loop, use uigetfile() to select all of the .csvs. [filename,filedir] = uigetfile('*.csv','Multisel...

8 years ago | 2

Answered
Comparing elements of rows (in cell) and columns (in array) and plot results as 2D mash/grid
Fair warning, I have not actually looked at the arrays you presented. Task 1 can be completed in a couple of different ways. ...

8 years ago | 0

| accepted

Answered
how to load set of files into different variables and take specific column of those files and make a matrix
If it is possible to open them with a text editor you could use the textread() command. This is designed to read ascii files, so...

8 years ago | 0

Answered
large excel file reading.
It is possible to use the ActiveX ability, (actxserver('Excel.Application') to start excel) but this option can take a bit of le...

8 years ago | 0

Answered
How to search an Excel file for a certain column, then save that entire column?
The table option may work, I personally don't have much experience reading tables. I tend to read excel files using the more com...

8 years ago | 0

| accepted

Answered
How to delete Multiple rows in excel file using activex
You could try running a for loop: rowstodelete = [1 2 5 64]; for i = 1:length(rowstodelete); Activesheet.Rows.Ite...

8 years ago | 0

Answered
Taking new value for a variable from excel at each step of Iteration
I don't know if you're still looking for an answer for this problem or not, but I figured I could try to help anyway. How this i...

8 years ago | 0

Answered
How to add values from two different arrays into a matrix
Matlab sees them as either arrays or matrices, depending on the type of operations you use them for. Unfortunately I do not do m...

8 years ago | 1

| accepted

Question


How to print an array with same column starting locations?
I have an array with varying size data values: A = [ 1.1 2.123 3.12 1 45.1234 567 1.23 -3.1...

8 years ago | 1 answer | 0

1

answer

Question


Understanding Cell Array Indices
I have a large cell array imported from a .csv file which contains numbers and strings. I am trying to use the index of a matchi...

8 years ago | 1 answer | 0

1

answer

Answered
Opening another array of data
So you want to open the cell within the cell array? Generally that's done by something like the following: out{FirstLayer}{...

9 years ago | 0

Answered
Call Excel cell contents for series name using ActiveX
After much research, and trial and error. It is possible to use the contents of an excel cell as a string by using .Value at the...

9 years ago | 0

Load more