Pregunta


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...

casi 13 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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 ...

casi 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 ...

casi 13 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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

casi 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

casi 13 años hace | 14 respuestas | 1

14

respuestas

Pregunta


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...

casi 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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 = [...

casi 13 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

casi 13 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 13 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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...

alrededor de 13 años hace | 3 respuestas | 0

3

respuestas

Pregunta


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

alrededor de 13 años hace | 3 respuestas | 2

3

respuestas

Pregunta


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 = ...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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: ...

alrededor de 13 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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...

alrededor de 13 años hace | 2 respuestas | 0

2

respuestas

Pregunta


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...

alrededor de 13 años hace | 0 respuestas | 0

0

respuestas

Pregunta


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=...

alrededor de 13 años hace | 0 respuestas | 0

0

respuestas

Respondida
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...

alrededor de 13 años hace | 0

Respondida
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...

alrededor de 13 años hace | 0

Pregunta


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. ...

alrededor de 13 años hace | 5 respuestas | 0

5

respuestas

Pregunta


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...

alrededor de 13 años hace | 2 respuestas | 0

2

respuestas

Respondida
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...

alrededor de 13 años hace | 0

Respondida
Using find to compare matrices
Thanks very much!

alrededor de 13 años hace | 0

Pregunta


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...

alrededor de 13 años hace | 3 respuestas | 0

3

respuestas