Answered
How to export images to a single pdf file
There are some functions in the File Exchange but i find <http://www.mathworks.com/matlabcentral/fileexchange/19322-saveppt2 sav...

11 years ago | 0

Answered
how to update value of a function at each time step
So we start off with something like this dt = 0.01; t=0:dt:10; K = zeros(size(t)); %initialize it K(1) = 3;%setup init...

11 years ago | 1

| accepted

Answered
Help with GUI panels
So what is happening in your examples is that you placed panel 2 inside panel 1. That is why in the initial panel contains both...

11 years ago | 2

| accepted

Answered
Need help to write general syntax for matlab program for combining results of all inputs
just perform the standard concatenation of Results = []; for d=8:9 Results = [Results; your_function(d)]; end ...

11 years ago | 0

Answered
How can I average points with just the same x-coordinate?
if you have more than 1 plot as in >>plot(x,y) but more of >>plot(x1,y1,x2,y2) etc or a held plot then you can try this. ...

11 years ago | 0

Answered
How to count the number of hours with reference to a MATLAB formatted date?
the number returned from datenum is in days. so if we go time1 = datenum(datestr(now)); pause(1); time2 = datenum(date...

11 years ago | 0

| accepted

Answered
regenerate Array name form Plot (Important Question)
I would say when you're defining each plot you also set the X and Y data source parameters located in the axes properties. See ...

11 years ago | 0

Answered
Rapid Vector Matching/Search Problem
you'll need to use the function ismember() such as: found_row = ismember(A,B,'rows') which will return a logical arra...

11 years ago | 1

| accepted

Answered
I am getting error Index exceeds matrix dimensions. What am I missing here?
Seeing how that was incredibly hard to read, i can only see it being the fid(non_vowels) at the very end. fid is the file ident...

11 years ago | 0

Answered
Cell-mode options in command line
I do not think that is possible as matlab doesn't have "goto" type statements and cells cannot be named. What can be done is fo...

11 years ago | 0

Answered
Keyboard shortcut to evaluate current line?
This is not entirely 1 button press but you can use the documentation here <http://blogs.mathworks.com/community/2009/09/28/conf...

11 years ago | 1

Answered
Duplicating values into other matrix elements
not entirely sure what you mean by "rewrite the values in the rows below to true also" but to do what you're attempting in a fas...

11 years ago | 0

Answered
is there a layout manager for making Matlab GUI's?
Well, it took a while for me to remember how to search my previous answers for this but you can use guide in a semi-automatic fa...

11 years ago | 0

| accepted

Answered
Delete specific rows from a matrix
the use of the function any() can find where there are any numbers equal to one. A= [7,7;2,2;1,1;3,3] A(any(A==1,2),:)=[...

11 years ago | 1

| accepted

Answered
FOR loop control structure
k will be exactly as you say however the for loop will iteratively go through each item within k. if you put in a break point i...

11 years ago | 0

Solved


Find a Pythagorean triple
Given four different positive numbers, a, b, c and d, provided in increasing order: a < b < c < d, find if any three of them com...

11 years ago

Solved


Area of an Isoceles Triangle
An isosceles triangle has equal sides of length x and a base of length y. Find the area, A, of the triangle. <<http://upload...

11 years ago

Solved


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

11 years ago

Solved


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

11 years ago

Solved


Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...

11 years ago

Solved


Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....

11 years ago

Solved


The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".

11 years ago

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

11 years ago

Solved


Given a window, how many subsets of a vector sum positive
Given a vector: [1 0 -1 3 2 -3 1] and a window of 2, A sliding window would find: 1 + 0 = 1 0 - 1 = -1 ...

11 years ago

Solved


Create times-tables
At one time or another, we all had to memorize boring times tables. 5 times 5 is 25. 5 times 6 is 30. 12 times 12 is way more th...

11 years ago

Solved


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

11 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

11 years ago

Solved


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

11 years ago

Solved


Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

11 years ago

Answered
GUI Guide Help with edit text used as input to external functions returning static text
in the matlab command window type in guide and look at the example "GUI with uicontrols" it has everything except passi...

11 years ago | 0

Load more