Question

GUI - Populating listbox with File List

I have inseted a Click and List Box in GUI. Procedurally, I would like to click the Click Box to open the computer's File Direc...

mehr als ein Jahr ago | 0 answers | 0

Question

How can I connect a .m script to a GUI?

I know how to design a GUI interface through MATLAB, but I'm not sure how to connect my script to it. My script is ~110 lines i...

mehr als ein Jahr ago | 1 answer | 0

Question

How do I display my waterfall plot with only curves?

I generated a waterfall plot of my data, but it is being displayed as a series of bars. It is very confusing to read in this vi...

mehr als ein Jahr ago | 1 answer | 0

Question

ODE45 how can I format this system of equations?

How can these four equations be arranged for ODE45 solution? xd1 = v1; xd2 = v2; vd1 = (1/m1) * (P - R1*(xd1 - xd2) - K1*(x1-...

fast 2 Jahre ago | 2 answers | 0

Question

2DOF System - What is wrong with the implemented differential equations here?

For the following system, you should see frequency and velocity decrease as depth is increased. However, my script is showing th...

fast 2 Jahre ago | 0 answers | 0

Question

2DOF Harmonic Oscillator - Is this right? (How would I do this with ODE45?)

I'm not entirely sure what's going on with this result. I don't think resonant frequency increases then decreases with depth. I...

fast 2 Jahre ago | 1 answer | 0

Question

How can I use an ODE solver to solve for the velocities of this system of equations?

I generated this system diagram and have written the system of differential equations below it. How can I implement an ODE solv...

fast 2 Jahre ago | 0 answers | 0

Question

ODE45 to solve for velocity & plot velocities v frequencies?

FREQ = 0:1000; m1 = 12; m2 = 24; K1 = 6000; K2 = 3450; R1 = 40; R2 = 28; P = 1 * (1i * 2 * pi * FREQ); My state variable eq...

fast 2 Jahre ago | 1 answer | 0

Question

Using ODE45 for coupled differential equations

How can I solve for the 's in the system of differential equations? I have: m1 = 12; m2 = 24; K1 = 6000; K2 = 3450; B1 = 40; B...

fast 2 Jahre ago | 0 answers | 0

Question

Simulink for SDOF Lumped Mass System

I cannot find how to solve this system symbolically with Simulink. Can you help with this?

fast 2 Jahre ago | 0 answers | 0

Question

How can I create a Figure Title with a variable in it?

I have a figure: DEPTH = 10; % Depth changes based on user input figure('Numbers at a depth of %d meters)') How can I make my...

fast 2 Jahre ago | 1 answer | 0

Question

Can you solve these state variable equations using Matlab?

<</matlabcentral/answers/uploaded_files/221407/6D3835FE-F2C5-49EF-95A9-40905F35467C.jpeg>> I had two differential equations t...

fast 2 Jahre ago | 0 answers | 0

Question

How can I symbolically solve this system of equations?

syms B1 B2 g m1 m2 K1 K2 P v1 v2 x1 x2 x1(dot) = v1 v1(dot) = (1/m1) * (-K1 * x1 - B1 * v1 + K1 * x2 + P) x2(dot) = v2 v2(...

fast 2 Jahre ago | 1 answer | 0

Question

How can I simultaneously solve for these equations?

The known variables in these equations are: & g. Is there a way for me to simulataneously solve these equations symbol...

fast 2 Jahre ago | 1 answer | 0

Question

How can I solve for coupled differential equations?

How can I solve for the 's in the system of differential equations? I have: m1 = 12; m2 = 24; K1 = 6000; K2 = 3450; B1 = 40; B...

fast 2 Jahre ago | 2 answers | 0

Question

How can I divide two columns of data?

I have a file with two columns of data. Column A: 2; 4; 6; 8; 10; Column B: 2; 4; 3; 4; 5; I want to divide these c...

fast 2 Jahre ago | 1 answer | 0

Question

How can I multiply axis values by 1000 without changing the data?

With the script shown below, figure() for CH = 2:33 Y = (avg(:,CH) - avgBG(CH) + SP); hold on plot(avg(:,1), Y)...

etwa 2 Jahre ago | 2 answers | 0

Question

How can I create this 2D waterfall plot?

The data is from a CSV file with one time column and 32 columns of data. The curves show the Amplitude vs. Time behavior of the...

etwa 2 Jahre ago | 4 answers | 0

Question

With the pwelch plotting estimate, what mathematically is being performed?

I've attached a screenshot of my window to demonstrate the script I'm using to plot the pwelch as well as the two options for p...

etwa 2 Jahre ago | 0 answers | 0

Question

How can I change the units of a plot function in the plot tab?

This plot was generated by pwelch(variable); figure(variable). It's a predefined plot in the Plot tab. I need to multiply the X...

etwa 2 Jahre ago | 1 answer | 0

Question

Plotting pwelch PSD manually

I'm plotting a pwelch PSD. From my plot toolbox, I select pwelch (psd). This gives me the figure. The y-axis values are corr...

etwa 2 Jahre ago | 0 answers | 0

Question

How can I display the maximum 10 elements in an array?

The pixels in yellow are of the highest intensity, I would like to display 10 pixels of the highest intensity. I've plotted the...

etwa 2 Jahre ago | 1 answer | 0

Question

How can I default an array to show either 0's or 1's?

I have an array that is defined by: pict(i, j) = pict(i, j) + (sum1^2 - sum2)/32; The array is a 41 x 41 double, and yields th...

etwa 2 Jahre ago | 2 answers | 0

Question

Can I make the max value in a plot 1 and the rest zero with kronecker delta?

The spot of intensity at -11 to -12 meters on the y-axis, I'd like to use kronecker delta to make the pixel with the greatest in...

etwa 2 Jahre ago | 1 answer | 0

Question

Why is my CSV reader not working?

clc; clear; % Path to Data Files. path = "C:/Users/Desktop/File Names"; % Number of F & G. No_F = 32; No_G = 32; % De...

etwa 2 Jahre ago | 1 answer | 0

Question

How can I write this C++ script to Matlab?

How would you write this C++ script to Matlab? do k = No_TimeSamples do i = No_Pixels SUM_1 = 0 SUM_2 = ...

etwa 2 Jahre ago | 1 answer | 0

Question

How do I implement this function?

I am using csvread to load the data into Matlab. There are 33 columns of data with 10000 rows of data. (1 time column & 32 ...

etwa 2 Jahre ago | 0 answers | 0

Question

How can I update a file string to CSVREAD in a for loop?

My files are in 1 folder which I set in Matlab as my Current Folder. The names are: g1, g2, g3, g4, g5, g6, and so on... Curr...

mehr als 2 Jahre ago | 0 answers | 0

Question

How can I loop my CSV reader?

My files are in 1 folder which I set in Matlab as my Current Folder. The names are: g1, g2, g3, g4, g5, g6, and so on... Cur...

mehr als 2 Jahre ago | 1 answer | 0