Community Profile # Keith Grey

Last seen: etwa 2 Jahre ago Active since 2020

#### Statistics

• #### Content Feed

View by

Question

How can I update 2 separate figures without opening new figures?
When plotting 1 figure, hold on works fine. With two figures, it keeps opening a new window. How can I make 2 figures, and updat...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How can I solve this matrix for y?
M = [1 0 0 0; 0 1 0 0; 0 0 20 0; 0 0 0 10]; % Mass matrix y = [x1; x2; v1; v2]; % Displacement & Velocity Matrix B = [0 0 -1...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

Solving matrices in form of (A + Bx = C)?
% How do I write to solve for y? A = [1 2; 3 4]; B = [0 0; 1 1]; y = [x1; x2]; C = [1; 0]; % y should be a 2x1, but I'm g...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How to plotting symbolic solution over range?
syms y(x) ode = x * diff(y, x) == (50) * x * diff(y, x, 2) - (40.3) * x + (101); % DE shown above. x_dot = dsolve(ode); p...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How can I format this dsolve argument?
I'm not too familiar with solving DE's in matlab, but I keep getting an error when trying to implement this solution. Is there a...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How to solve mass spring damper over frequency (differential equation)?
This is a mass-spring-damper system equation with a function dependent on frequency (M, R, & K in parethesis). f = 50:450; % ...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How can I solve & this 2nd order differential equation?
% x = x'' % y = x' % z = x % Conditions f = 50:1:200; % Frequency span (Hz) for f = 50:1:200 Equation = 50x - 10...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How can I use the coupled system of matrices (ODE45) using a frequency span?
I haven't found much information in the Documentation addressing a case like this, so I'm unsure of where to even begin. The fo...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

Use ODE45 with a frequency span instead of time?
I have 2 coupled differential equations. I'm trying to use ODE45, but it requires a time span (tspan). Is there a way to use a ...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How can I extract curve data from a .FIG file?
I have 10 .FIG files plotted using the segment below. yyaxis left plot(50:450, V1 * 10^6, 'r') xlabel('Frequency (Hz)') ylab...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How can I extract Information from .FIG Files?
I have 200+ .FIG files with X & Y Data. I'm trying to do something like: X = 1:1000; Y1 = get(Xdata, 'Figname.fig'); Y2 = ......

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

Save a .FIG as .JPG (syntax error?)
I currently have a string varible that updates my fig title and file names. savefig(sprintf('%s - F vs V.fig', NAME)) But I al...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How can I read a .DAT file into a variable?
Currently, I collect data in .DAT format, use an older software package to convert it to .CSV, and read it into MATLAB using: F...

etwa 2 Jahre ago | 0 answers | 0

### 0

Question

Specifying a range in a double
% Values is a 401x1 double: 1 - 401 % In this example, I want to take the mean from Values(90) to Values(110). % Specify Bou...

etwa 2 Jahre ago | 1 answer | 0

### 1

Question

How can I save the outputted string (retaining tabs/added lines) to a .txt file?
How can I save the outputted string (retaining tabs/added lines) to a .txt file? MESSAGE = sprintf('Var1 is %g.\nVar2 is %g.', ...

etwa 2 Jahre ago | 1 answer | 0