Question


Programming a Recursive Function
Hi I know in the meantime how to program simple recursive functions, but wondered how Newton's method could be programmed rec...

11 years ago | 0 answers | 0

0

answers

Question


Plotting simple algorithm, problem with axis
Hi Below my algorithm: First I store the so called Lucas Numbers in a vector v. v contains the N first lucasnumbers. Then I ...

11 years ago | 1 answer | 0

1

answer

Question


Recursive Function with two Base Cases
Hi Let the Lucas Numbers be defined as follows: 1 for n = 1 3 for n = 2 L_n = L_(n-1) + L_(n-2) for n >= 3 Why does...

11 years ago | 1 answer | 0

1

answer

Question


Color "Thermometer" for different shaded functions
Hi I have a page of subplots each of which contains a function (a distribution to be more precise). Now each function has a d...

11 years ago | 1 answer | 0

1

answer

Question


Undefined function for input arguments of....
When I want to run the following function: function [x,y] = ueb(x,y) if x == 0 && y == 0 disp('hello') else ...

11 years ago | 2 answers | 0

2

answers

Question


"length" doesnt work
Hi I have the following problem: >> x = [1 2 3] x = 1 2 3 >> length(x) Index exceed...

11 years ago | 1 answer | 0

1

answer

Question


Cannot save a Matlab file
Hi I know this is not tech support, but since I have updated Matlab to 2012b I experience having lots of problems, so maybe y...

11 years ago | 14 answers | 1

14

answers

Question


simple elseif loop doesn't work
hi! This is my code: T = input('enter a number: ') if 0 < T < 100 h = T - 10 elseif T > 100 h = 0.45...

11 years ago | 1 answer | 0

1

answer

Question


Subplot - Plots are not displayed
Hi I use the following easy script do plot some functions in subplots: x = [1 3 4 5]; y = [2.3 4.1 5.2 -1]; z = [...

11 years ago | 2 answers | 0

2

answers

Question


Use of "return" in simple if statement
Hi I have of course read the explanations regarding the return statement. Still in the following case: if (parameter < 1...

11 years ago | 2 answers | 0

2

answers

Question


Short question: Creating a XML file
Hi I would like to know if my general approach to creating XML files is correct: docNode = com.mathworks.xml.XMLUtils.cr...

11 years ago | 0 answers | 0

0

answers

Question


Short function to find min value in vector
Hi I have written this simple function: function minv = findm(vec) minv= vec(1); for i = 2:length(vec) if v...

11 years ago | 3 answers | 0

3

answers

Question


Short question: Functions with multiple outputs
Hi I have seen two formalism for functions with more then one output: function [output1, output2] = functionname(input) ...

11 years ago | 3 answers | 2

3

answers

Question


Finding values in a matrix with logical operation
Hi I know how to show for a Matrix A the values in the first column which fullfill a certain condition. Say: A = ...

11 years ago | 1 answer | 0

1

answer

Question


Short question: Matrix with two arguments
Hi I have seen the following syntax in some places: [x y] and was wondering what exactly it means? Something as: ...

11 years ago | 1 answer | 0

1

answer

Question


Short question: Using the find command
Hi I have a matrix X with three columns, say column 1 stores attribute a, column 2 sotres attribute b, and column 3 stores at...

11 years ago | 2 answers | 0

2

answers

Question


Store XML attributes into an array
Hi, me again with this question: I have an XML file and want to store certain attributes into an array. The XML file looks...

11 years ago | 0 answers | 0

0

answers

Question


From XML to array
Hi I have an XML file and want to store certain attributes into an array. The XML file looks like this: ?xml version=...

11 years ago | 0 answers | 0

0

answers

Answered
Using "find" for finding decimal values
I am really sorry for my use of the word "horrible". If you meant the following command though ( I have used another nummeri...

11 years ago | 0

Answered
Using "find" for finding decimal values
I was not aware of that, that is pretty horrible! Anyway, both of your suggestions did not work, so also for: idx = find(a...

11 years ago | 0

Question


Using "find" for finding decimal values
Hi I use the matlab command importdata: X = importdata('filename.csv'); to read in a csv file with three columns. ...

11 years ago | 5 answers | 0

5

answers

Question


Dynamic Matrices in Matlab
Hi! Yesterday, I had a very similar question, now I want something a bit more advanced. So I have coded already: data...

11 years ago | 2 answers | 0

2

answers

Answered
Using find to compare matrices
hi I have realized it still does not do what I wanted. Here I just get "7 8" as outputs. But I want to be able to get the valu...

11 years ago | 0

Answered
Using find to compare matrices
Thanks very much!

11 years ago | 0

Question


Using find to compare matrices
Hi I have a matrix where the first column contains id's and the second some sort of information about thes id's, as an exampl...

11 years ago | 3 answers | 0

3

answers