質問

matlab loop code to save figures

I have the code below. It works fine. Notice the filename. It starts with dr_1e-1. I have other files that go up to dr_1e-9. Is ...

2年以上 前 | 1 件の回答 | 0

質問

Creating a variable from part of a string

I have a string: x='dr_1e-2_A1_OFF_A2_OFF.txt'; Is there a way to create variables from this string? How can I set ...

2年以上 前 | 1 件の回答 | 0

質問

creating subplot from function

I have some code, generally looks like this: x='dr_0.01.txt'; foo(x); function y = foo(fname) Do stuff...

2年以上 前 | 1 件の回答 | 0

質問

Find all values within a given tolerance of 0

I have a matrix, called "difference". "difference" is 139x101. I would like to output the column numbers (i.e. somewhere between...

2年以上 前 | 1 件の回答 | 0

質問

Plotting a surface with scatter data

I have density which is a 310x1 matrix. I have pressure which is a 310x41 matrix. Each column corresponds to a different temper...

2年以上 前 | 1 件の回答 | 0

質問

diff vs. gradient

Why does: diffpressure = gradient(pressure)./gradient(density); and diffpressure = diff(pressure)./diff(density...

2年以上 前 | 1 件の回答 | 0

質問

Differentiate and store results in matrix

I have two matrices. The first matrix is Density and it 311x1. The second matrix is Temperature and it is 311x21. The column in ...

2年以上 前 | 1 件の回答 | 0

質問

creating new matrix based on column value

I have a data file that is 3 columns (Density, Temp, Pressure) I generate the data using C++ and it loop through all possible...

2年以上 前 | 1 件の回答 | 0

質問

Matlab loop through 100 files and add line of text (Depending on file number)

Hello, I have 100 files, labeled 1,2,3,4...100 I want to add a line of text to each file depending on the file number. I h...

約6年 前 | 0 件の回答 | 0

質問

MATLAB object only shows on plot if greater than certain value found in matrix

I have code that plots the objects in a 3D scatter graph. Some objects move, so I have a color scale to show which ones move fur...

7年弱 前 | 0 件の回答 | 0