質問


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年以上 前 | 0 件の回答 | 0

0

回答

質問


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

12年弱 前 | 1 件の回答 | 0

1

回答

質問


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

12年弱 前 | 1 件の回答 | 0

1

回答

質問


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

12年弱 前 | 1 件の回答 | 0

1

回答

質問


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

12年弱 前 | 2 件の回答 | 0

2

回答

質問


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

12年弱 前 | 1 件の回答 | 0

1

回答

質問


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

12年弱 前 | 14 件の回答 | 1

14

回答

質問


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

12年弱 前 | 1 件の回答 | 0

1

回答

質問


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

12年弱 前 | 2 件の回答 | 0

2

回答

質問


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

12年弱 前 | 2 件の回答 | 0

2

回答

質問


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

12年弱 前 | 0 件の回答 | 0

0

回答

質問


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

12年弱 前 | 3 件の回答 | 0

3

回答

質問


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

12年弱 前 | 3 件の回答 | 2

3

回答

質問


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

12年弱 前 | 1 件の回答 | 0

1

回答

質問


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

12年弱 前 | 1 件の回答 | 0

1

回答

質問


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

12年弱 前 | 2 件の回答 | 0

2

回答

質問


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

12年弱 前 | 0 件の回答 | 0

0

回答

質問


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

12年弱 前 | 0 件の回答 | 0

0

回答

回答済み
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...

12年弱 前 | 0

回答済み
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...

12年弱 前 | 0

質問


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

12年弱 前 | 5 件の回答 | 0

5

回答

質問


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

12年弱 前 | 2 件の回答 | 0

2

回答

回答済み
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...

12年弱 前 | 0

回答済み
Using find to compare matrices
Thanks very much!

12年弱 前 | 0

質問


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

12年弱 前 | 3 件の回答 | 0

3

回答