Question

How do I combine multiple plots in a for loop?

Hello all, I am trying to plot within a for loop, but it only plots the last value, as it's overwritting previous values. My co...

más de 1 año ago | 3 answers | 1

Question

Guide toolbar toggle button within another function

Hi All, I have created a GUI using guide and added a toggle button to the toolbar. I am trying to use this toggle button wit...

más de 5 años ago | 1 answer | 0

Question

Guide Popupmenu adding an image?

How can you add an image to a popupmenu using guide? An example picture of what I am trying to do is shown below. I have been...

más de 5 años ago | 2 answers | 0

Question

Popupmenu and axes questions using GUIDE

Hello All, I have a few questions about doing some tings in GUIDE. I have been searching around, but haven't been able to fi...

más de 5 años ago | 1 answer | 0

Answered

Java code to Matlab

Thanks Geoff, This is part of a larger code that is actually used in a GUI. I am somewhat attempting to recreate it in Matl...

Java code to Matlab

Thanks Geoff, This is part of a larger code that is actually used in a GUI. I am somewhat attempting to recreate it in Matl...

casi 6 años ago | 0

Question

Java code to Matlab

Hello all, I am trying to convert some Java code into matlab code and I am a little bit stuck. I have used matlab to some ex...

casi 6 años ago | 2 answers | 0

Question

Gui Screen Shot Button

Hello all, I have a GUI that i created using guide and I am trying to create a push button that can be used to save a screen ...

casi 6 años ago | 2 answers | 0

Question

How to display fit equation on plot?

Hello all, I have written code that creates a power fit to some data. The code is : p=polyfit(log(pla_strain),log(pla_s...

más de 6 años ago | 3 answers | 0

Question

Finding maximum between every two rows of a matrix

Hello everyone, I have a matrix that I am trying to break up based on maximums. I will explain this with a simplified exampl...

más de 6 años ago | 0 answers | 0

Question

Finding maximums in matrix columns

Hello all, I have a little bit of a tricky problem that I am trying to solve. I am still rather new to Matlab, so I am a lit...

más de 6 años ago | 2 answers | 0

Question

Breaking up matrix by values in column

Hello all, I am trying to figure out a way to break up a 100 x 7 matrix by values in the last column. I will give a short ex...

más de 6 años ago | 1 answer | 0

Question

Importing text file data?

Hello everyone, I have written a function that imports .txt files and removes the 5 header lines. Right now the function onl...

más de 6 años ago | 1 answer | 0

Question

Finding peaks in a data set

Hello all, I have some data and need a way to reliablly find the peaks of the data set. The picture below shows the plotted ...

casi 7 años ago | 1 answer | 0

Question

Problem reading text file data

Hello all, I am trying to read some data from a text file within Matlab, but for some reason I keep recieving NaN for every o...

casi 7 años ago | 0 answers | 0

Question

Creating indivdual column vectors based off a location vector

Hello all, I am trying to figure out how to do this and can't come up with a good way to do it. What I am trying to do is br...

casi 7 años ago | 1 answer | 0

Question

Breaking up a column vector

Hello everyone, I have a data set that I am trying to break up based upon peaks in the data. Essentially I finding the peaks...

casi 7 años ago | 1 answer | 0

Question

pulling yield stress automatically

Hello, I have some stress strain data from a tensile test. This is a typical looking stress strain curve. I am trying to fi...

casi 7 años ago | 0 answers | 0

Question

Interpolating vectors at specific points

Hello all, I am trying to do some interpolation with 3 column vectors. The first vector v, is a velocity column vector. The...

casi 7 años ago | 1 answer | 0

Question

Making part of a column negative depending on another column

Hello, I am trying to do the following. I have two column vectors as follows: a=[3;5;8;2;-2;-5;-8]; b=[1;2;3;4;5;6;7];...

casi 7 años ago | 1 answer | 0

Question

Reading .dat file with multipe headers

Hello everyone, I am trying to import some data into matlab and it has multipe headers throughout the data set. I would like...

casi 7 años ago | 1 answer | 0

Question

Returning peak values from a column

Hello, I am trying to do the following. I have two column vectors: Cp=[0;0.4;0.8;0.99;0.8;0.4;0]; Cf=[1;2;3;4;5;6;7]...

casi 7 años ago | 3 answers | 0

Question

Removing rows from a column depending on another column

Hello, I need a little bit of help with this problem. I will explain it the best I can then give a basic example below. Bas...

casi 7 años ago | 3 answers | 0

Question

Converting positives to negatives in a column.

I have somewhat of a confusing problem that I need help with. I am going to explain it the best that I can, so here goes. I ha...

casi 7 años ago | 1 answer | 0

Question

Iterating a function within a for loop

Hello all, My code is posted below. I am trying to iterate the function (VTL) I created for different values of alpha and ob...

alrededor de 7 años ago | 1 answer | 0

Question

How to reduce this code to one line.

Hello, I am trying to reduce the number of lines in my code and was wondering if there is an easy way to do this. Given below ...

alrededor de 7 años ago | 0 answers | 0

Question

nested for loop help

I am writing a matlab code that uses the vortex lattice method to calculate lift and induced drag. I am hung up on calculating ...

alrededor de 7 años ago | 1 answer | 0

Answered

Vectorizing a for loop?

Thank you very much sir! I am still trying to understand bsxfun, as I am relatively new to this command.

Vectorizing a for loop?

Thank you very much sir! I am still trying to understand bsxfun, as I am relatively new to this command.

alrededor de 7 años ago | 0

Question

Vectorizing a for loop?

How would I rewrite this code using say repmat to vectorize it and get rid of the for loop? I have been playing with this, but ...

alrededor de 7 años ago | 3 answers | 0

Question

plotting from a nested for loop?

I have a function that calls another function inside a for loop and the for loop runs that function for N values. The code is s...

alrededor de 7 años ago | 0 answers | 0