Feeds
질문
"Access is denied." Error
I am running a script where I'm trying to create a directory if the directory doesn't already exist. The relevant section of my ...
3개월 전 | 답변 수: 1 | 0
1
답변질문
How to a create a label at the bottom of a vertical line?
I am plotting a vertical line using xline, and I'd like to label the plot at the bottom of the line instead of the top. The exam...
4개월 전 | 답변 수: 1 | 0
1
답변질문
Remove NaN Entries in a Dataset
I have a data set with multiple variables (var1, var2, var3). Any of the variables can have a NaN values. If one value for one o...
1년 초과 전 | 답변 수: 1 | 0
1
답변질문
How to delete all files with a certain extension?
I have a directory with several .png files that I would like to delete in a script. I have the following script that I have modi...
거의 2년 전 | 답변 수: 1 | 0
1
답변질문
Save a Figure as a .png and .pdf of a Specific Size
I am trying to generate a plot and save it as .png and .pdf files of a certain size. I have many plots that I am generating that...
거의 2년 전 | 답변 수: 1 | 0
1
답변질문
Problem concatenating two strings
I have three files (attached). I need the for loop to extract the part of each file name between the hypens into separate fields...
거의 2년 전 | 답변 수: 1 | 0
1
답변질문
Error creating structure field names with a for loop
I have several directories that each contain multiple .txt0 files that I am trying to process. (For the sake of this question, t...
대략 2년 전 | 답변 수: 1 | 0
1
답변질문
Append to Text File with For Loop
I am trying to append to a text file using a for loop. Here is a generalized version of my script: for 1:length(variable) if ...
대략 2년 전 | 답변 수: 0 | 0
0
답변질문
Create a new structure using a function in a for loop.
I have a structure, and I want to use the values of one of the fields as the names of new structures. So, for instance, I have s...
대략 2년 전 | 답변 수: 0 | 0
0
답변질문
Problem Creating Structure Field with For Loop
I'm having trouble creating and populating a structure field using a for loop. What I've attempted is for j = 1:6 structur...
대략 2년 전 | 답변 수: 2 | 0
2
답변질문
Count number of lines between strings in a text file.
I have a set of text files with varying amounts of information (i.e. different numbers of lines) in the header. One example file...
대략 2년 전 | 답변 수: 1 | 0
1
답변질문
Remove space in a string while parting data using sscanf.
I am reading a file that has this line: Pressure Offsets: -0.206,-0.025,0.004 ,-0.099,-0.598 There is an extra space after "0....
대략 2년 전 | 답변 수: 1 | 0
1
답변질문
Read a file with textscan.
I have a text file that I'm trying to read with textscan. The top of my file looks like #######################################...
2년 초과 전 | 답변 수: 2 | 0
2
답변질문
Find files of a certain extension and populate a structure field with those file names.
I have a directory with multiple .txt files. I want find all those .txt files and create a structure field with the names of tho...
2년 초과 전 | 답변 수: 2 | 0
2
답변질문
How can I create structure entries in a for loop.?
I have multiple data sets. For each data set, I would like to perform multiple calculations and have the results of those calcul...
2년 초과 전 | 답변 수: 1 | 0
1
답변질문
Reference Axes Positions in a Plot
I have a plot where I set the axes positions explicity. My code for this is: ax_left = gca; ax_left.Position = [0.05 0.05 0.89...
2년 초과 전 | 답변 수: 0 | 0
0
답변질문
How Does the Size of a Plot Annotation Text Box Matter?
I'm trying to create a text annotation for a plot. I'm using the following link as a reference: https://www.mathworks.com/help/...
2년 초과 전 | 답변 수: 1 | 0
1
답변질문
Problem Explicitly Defining a Plot Area
I am trying to figure out how to explicitly define the area and axes location for a plot. I've looked through this link: https:...
2년 초과 전 | 답변 수: 1 | 0
1
답변질문
Remove the Last Entry of Many Fields of a Structure
I have a multiple structures with many fields, and each field has thousands of entries (rows). I need the each field in a partic...
2년 초과 전 | 답변 수: 2 | 0
2
답변질문
Why doesn't my function for writing a file work?
I have a section of code that I'm trying to convert to a function. This code works without being used as a function, so the prob...
거의 3년 전 | 답변 수: 1 | 0
1
답변질문
How can I create a function that updates a structure whose input is that structure?
I have the following section of code that I'd like to convert into a function: count = 1; for j = 1:length(data_raw{1}.test_da...
거의 3년 전 | 답변 수: 1 | 0
1
답변질문
Fast-Fourier Transform Data Input
I have time-dependent data that I would like to run a Faster-Fourier transform on. The data is in an ASCII text file. The first ...
대략 7년 전 | 답변 수: 0 | 0
0
답변답변 있음
I need to read a file and store the values, so I can call these values in a for loop.
Thank you, KSSV!
I need to read a file and store the values, so I can call these values in a for loop.
Thank you, KSSV!
7년 초과 전 | 0
질문
I need to read a file and store the values, so I can call these values in a for loop.
I have a file (names.txt) that is a list of file names. There is one file name per line. I need to read that file, so that each ...
7년 초과 전 | 답변 수: 2 | 0