Answered
Convert the date string into date vector and expending existing matrix
A quick easy way to do this is text=['21/10/2012 16:00:00 0 81.34'; '21/10/2012 17:00:00 0 87.52'] temp(find(temp=='/...

12 years ago | 0

Answered
Preventing parallel GUI functions from overrunning matlab
Well what you can do to stop this from happening is to deactivate the pushbutton until the the function is completed. fun...

12 years ago | 0

| accepted

Answered
For intersecting circles, how to remove overlap and have chord visible? Also, how to randomly generate circle position in design space?
How are you drawing your circles? However you are trying to draw it you'll probably end up having x and y points representing...

12 years ago | 0

| accepted

Answered
Can figure numbers be re-assigned?
This maybe a bit hard to implemented based on how you're selecting the 3 interesting ones but the function copyobj() will do the...

12 years ago | 1

Answered
octal to binary, flip the binary, convert to hex
You can try something like this octstr = ['52';'51']; %your oct inputs bin_str = dec2bin(base2dec(octstr,8),8) %c...

12 years ago | 1

| accepted

Answered
How do I stack many files together into one?
as you can do it by hand (i'm assuming you're manually opening and appending to the final file (fopen->fwrite at end of file->re...

12 years ago | 0

Answered
How to cycle through images in a GUI
what you can do instead of generating a temporary text is use a listbox function pushbutton1_Callback(hObject, eventdata, ...

12 years ago | 0

Answered
pad vector between its values
you can try to use cellfun here is a quick thing i created using your example up top. You will have to play around with it a...

12 years ago | 1

Answered
How to plot an elliptical surface in Matlab?
depending on what you want to do with it matlab has the function [x, y, z] = ellipsoid(0,0,0,8,6,3.25,30); you'll only ...

12 years ago | 0

Answered
How to write this b in matrix form
Look for the patterns and you can build these efficiently. n=100; b=1:n; b=b.^2; b=b/(n+1)^4; b(1)=b(1)+1; ...

12 years ago | 0

Answered
Replace lines in text file with different length line
You'll have to read in the whole file after where you want to insert and re-write it. At least to my knowledge there isn't a bu...

12 years ago | 0

Answered
How can I use a a text file as a source for your popup menu in guide (i.e. items in the list)
however you have the popup menu updated, read in the text file with each entry as a cell(M profiles in one column). Then you ca...

12 years ago | 0

| accepted

Answered
im trying to add pop up menu functionality to change the plot type
type in guide in the workspace. under the Create New GUI tab there should be a template called "GUI with Axes and Menu". That ...

12 years ago | 0

| accepted

Answered
Error using plot--vectors must be the same lengths?
Plotted with mine as well. Kelsey can you tell us what dimensions (mxn) VertDisp and loadnorm are that you have in the work spa...

12 years ago | 0

Answered
set execution points in your code
Simple way to do this would be that separating the sections of code into switch/case statement where you would stick each segmen...

12 years ago | 0

Answered
Combine images in matlab with transparency
If you have the 2nd image (background 0's and apple areas 1) lets call that MASK, and let's call the apple image APPLE. J...

12 years ago | 0

Answered
Sliding window for image
You can use blockproc(). M=magic(10); fun =@(MEANS) mean(MEANS.data(:)); blockproc(M,[2 2],fun)

12 years ago | 0

Answered
Matlab for Calculus 2
Natural log is not represented in matlab by ln(). If you want to use ln you can: ln = @(x)(log(x)); %at the start of your...

12 years ago | 0

Answered
how to plot graph in gui?
In your line X=[2 4 7] Y=[4 6 8] h=plot(X,Y,'--r','LineWidth',1) ; it is trying to set everything after the X= to X. y...

12 years ago | 0

Answered
how to change one part of the string to NOT italic font?
you can do something like this >> title('this text is {\bfbold} this text is {\ititalizized}')

12 years ago | 3

| accepted

Answered
How to plot something like this?
See what we did here <http://www.mathworks.com/matlabcentral/answers/123510-how-to-plot-this-graph> Where we helped set them...

12 years ago | 1

| accepted

Answered
3D plane with more than 3 points
you can always try the Ordinary least squares method to get the coefficients for the plane by the equation Ax=b; A and b are de...

12 years ago | 0

Answered
While loops and repeated reduction of a number.
what you are missing from your loop is the updated variable. so what you should have is something like this Originalr = r;...

12 years ago | 0

Answered
how to sort a cell array in descending order ?
you can use the function sortrows() and then reverse the matrix rank(end:-1:1,:).

12 years ago | 0

Answered
How can i manipulate a matrix with this characteristics?
You can use cells for this. I do not see the pattern you have for [1 4 1 4 2 3 3 5 5 6 6 5] to the broken up matrix. but to set...

12 years ago | 0

| accepted

Answered
Changing some elements of a matrix.
I do not understand what you want to replace but if you know the inequality statement (A<B) you can do something like this ...

12 years ago | 0

| accepted

Answered
Creating a for loop that Concatinates the outputted matrixes
If the resulting DR1 length for each iteration is variable and you are not concerned about time, you can insert your DR2=[] befo...

12 years ago | 0

Answered
How do I select files using uigetfile without file extension in R2013b OS X?
I would try uigetfile('','selectdata','path'). However i do not have access to a mac right now.

12 years ago | 0

Answered
Using a non-linear value for pause
Try exaggerating the the non-linearity and see if you see a bigger difference. you can see how things are performing if you i...

12 years ago | 0

Answered
How to concatenate strings in Matlab with special characters?
I agree with Akshata it doesn't look like there should be an issue. The input should already be a string such that fopen should...

12 years ago | 0

Load more