提问


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

12 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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 years 前 | 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...

13 years 前 | 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=...

13 years 前 | 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...

13 years 前 | 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...

13 years 前 | 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. ...

13 years 前 | 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...

13 years 前 | 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...

13 years 前 | 0

已回答
Using find to compare matrices
Thanks very much!

13 years 前 | 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...

13 years 前 | 3 个回答 | 0

3

个回答