Question

Why am I not able to generate new struct in my for loop?

Hello, I am trying to make a new struct in my varible SBOB, such that it contains relative velocities. I have some structs alr...

12 months ago | 1 answer | 0

Question

How to get correct partial derivatives using diff function?

Hello, I am trying to take the derivative of a logorithum that consists of three varibles, x1, x2, and u. I think the syntax o...

12 months ago | 0 answers | 0

Question

How to make 3D plot?

Hello, I am trying to make a 3D plot of the function j, that has an input of u1, u2. I would like to plot the function such th...

12 months ago | 1 answer | 0

Question

How to save all my matlab plots from for loop?

Hello Everyone, I am trying to save all my plots from my for loop into a word document. I have tried using save2word, but that...

1 year ago | 1 answer | 0

Question

How to increment a subscript in Matlab using the ylabel function?

Hello, I am trying to make my subscripts in my for loop interate with each loop. Below is a copy of my code. An example of how...

1 year ago | 1 answer | 0

Question

How to make an assignment for my for loop?

Hello, I have some data that I am trying to manipluate to get some other data. For instance I have a time history data, and I ...

1 year ago | 1 answer | 0

Question

How to import textdata & data from Excel spreadsheet into Struct, using for loop?

Hello, I am trying to insert some data I have into a new varible that is made up of structs. I think my for loop is working so...

1 year ago | 1 answer | 0

Question

How to shorten my data in the struct I have?

Hello, I have some data that I am trying to plot, but I have way to many data points; the code takes forever to run. Therefore...

1 year ago | 1 answer | 0

Question

Why am I not getting the full output from my for loop?

Hello, I was wondering if anyone can let me know on why I am not getting all my outputs from my for loop. I am expecting to ge...

1 year ago | 0 answers | 0

Question

How to load data files from different folder using for loop?

Hello, I am trying to load all my data into two structs using a for loop. Below is a copy of my code so far, the issue is I am...

1 year ago | 1 answer | 0

Question

How to stop plotting after function hits first zero in oscillatory system?

Hello everyone, I am making a Haversine function, and am wanting the function to stop plotting values after the first zero is ...

1 year ago | 1 answer | 0

Question

How to add zero at the very beginning of my column matrix?

Hello everyone, I am plotting a stress-strain curve and would like to insert a point at the origin. I have tried using the zero...

1 year ago | 1 answer | 0

Question

How to exclude zeros in a matrix?

Hello, I am trying to get rid of the zero values in a matrix I have in V(:,:,i) in my for loop. However, I am getting an error...

1 year ago | 1 answer | 0

Question

How to store vectors into a matrix that have different sizes?

Hello, I am trying to make a for loop such that I am able to extract median values I did a DIC analysis on. I think the issue ...

1 year ago | 2 answers | 0

Question

How to get median values from N_Corr software?

Hello, I have recently done a DIC test and am using the N_Corr software to find the displacements and strains. I know I can ge...

1 year ago | 0 answers | 0

Question

How to store fprintf statements into a txt file?

Hello everyone, I am trying to write an XML file that I can upload into ANSYS for a model I am trying to simulate. I am using ...

1 year ago | 1 answer | 0

Question

Central Difference For Loop

Hello, I am trying to use the central difference for the function sin(2*pi*x), centered around x=0.313. I know what value should...

1 year ago | 1 answer | 0

Question

Function Error Input Argument

Hello, I am trying to make a function to which I can call any arbitrary function and get an approximate value for the sum of my ...

1 year ago | 1 answer | 0

Question

How to save multiple figures into a folder on desktop from a for loop?

Hello, I am trying to save all my figures, but don't want to run my code and then save each individual figure, can you help me...

2 years ago | 1 answer | 0

Question

How to modify the scaling values on yyaxis right?

Hello, I am trying to re-scale my yyaxis right values by making the values: 0_Bot, 0_Top, 17_Bot, 17_Top, -63_Bot, -63_Top, 90...

2 years ago | 1 answer | 0

Question

Help with symbolic transfer function?

Hello, I am trying to have an output that gives me a transfer function, given certain variables. Matlab is telling me the fo...

2 years ago | 1 answer | 0

Question

How to create a table using fprintf, and use data from a for loop that uses stepinfo?

Hello, I am trying to make a table using the fprintf function. I am using data from a for loop that I have created show below i...

2 years ago | 0 answers | 0

Question

How to recall values from for loop into a column matrix?

Hello everyone, I am trying to get four values from the for loop statement I made, Q_bar1, Q_bar2, and so forth. But, I don'...

2 years ago | 1 answer | 0

Question

For statement to find angle from real axis to imaginary plane?

Hello everyone, I was wondering if it is possible to make a for statement, such that I can find the angle between my imagina...

2 years ago | 0 answers | 0

Question

Why is my table array not outputting?!

Hello, Below is a copy of my code. I can not figure out why the code will not output my table, if you can help it will be mo...

2 years ago | 2 answers | 0

Question

How to output symbolic functions?

Hello everyone, I am trying to make a function (Gs) in my code, and have the out put Gs with an arbitrary constant K. The co...

2 years ago | 1 answer | 0

Question

How to connect data on a scatter plot in MatLab?

Hello, I am trying to connect my data with a line. In my code I have the three points plotted, I just need them to connect. ...

2 years ago | 1 answer | 0

Question

How to solve for a variable when equation is equal to a constant?

Hello, I am trying to solve for L in my code, however it either takes to long to run or outputs an error. The commented out ...

2 years ago | 0 answers | 0

Question

How to shift graphs in Matlab?

Hello, I am trying to figure out how to start my graph correctly. Time is starting at zero, however my statements are starti...

2 years ago | 0 answers | 0

Question

Why is this assignment displaying an error?

Hello, I am wondering why I am getting this display error. I have written another script using the same matrix, it's just a ...

2 years ago | 1 answer | 0