Beantwortet
Reading an Image after using load command
The same way you saved them: for k = 1:10 A = X(:,:,k); % do something with A end (Also, move the |save| co...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
numeric solve issue for an equation involving a logarithm
Didn't see your comment with your code. This works: imax = (n/2)-2; r = zeros(imax,1); syms b for i = 2:imax; ...

mehr als 13 Jahre vor | 1

Beantwortet
numeric solve issue for an equation involving a logarithm
If I understand your intent correctly, you're trying to solve the equation r_i = (Log10(b) + b)/2 for b, given a (numeric?...

mehr als 13 Jahre vor | 1

Beantwortet
Problem applying fminsearch to piecewise numerical solution genereated by ode45
It looks like you're on the right track. I'm a little suspicious of the use of the variable name |fminsearch| in |sim3Cmdb| a...

mehr als 13 Jahre vor | 0

Beantwortet
How can I create a datetick using if statements?
Do you actually want to create a variable that has two states or is this just about how you visualize a time series? If it's th...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
How to import a particular text file and plot.
By specifying a format string of |'%s'|, you effectively asked |textscan| for a single output. But then you asked to read a str...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Finding contents of cell in another one
If I understand your intent correctly, you want every row of |rxn| for which the value in the 5th column is one of values in the...

mehr als 13 Jahre vor | 0

Beantwortet
Error ??? Subscript indices must either be real positive integers or logicals.
To get the fourth variable: RUM = V(:,4); The |:| as the first index represents all rows. Given your description of t...

mehr als 13 Jahre vor | 0

Beantwortet
regexp question (-.- 4 word minimum)
I know you've already got it working, but |regexp| challenges are always fun. This seems to work... x = regexp(str,'/([\w\...

mehr als 13 Jahre vor | 4

Beantwortet
Why is airy(3,1) complex? (No numerical round-off in the complex part)
Looks like a bug in 12a. If you do whos y it shows the class as |double (complex)|, so |isreal| is working properly, bu...

mehr als 13 Jahre vor | 0

Beantwortet
Experiences with release 2012b
I've had quite a while to play with it. There was a little reorientation time, but I really like it now. I admit that I have a...

mehr als 13 Jahre vor | 1

Beantwortet
iterating values of a vector under conditions
If I understand you correctly, you have a procedure you want to iteratively apply to a vector, but only to the elements of that ...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
random number generation initial state
Digging through the code, |rng(shuffle)| calls |RandStream.shuffleSeed|. In there you can find a comment: % Create a seed ...

mehr als 13 Jahre vor | 1

Beantwortet
how can we plot this function as 3d with matlab?
Aww, cute. The reason you can't use |surf| or |ezplot| is that these are not designed for this kind of equation. To use |sur...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
2 questions regarding text() function in a FOR loop for a CURRENT graph.How to define CURRENT graph?
I'm having difficulty finding the problem. This works when I run it. Are you not seeing any numbers on your graph? (You won't...

mehr als 13 Jahre vor | 0

Beantwortet
Some basic MATLAB questions
Thank you for your asking such a great question! Matt has basically given you all the info you need for this assignment, but, i...

mehr als 13 Jahre vor | 5

Beantwortet
How do I use MLE on a shifted gamma distribution?
Peter is the expert on statistical matters, so I'd take his advice on whether what you're trying to do is a good idea. But here...

mehr als 13 Jahre vor | 0

Beantwortet
Solution of complex equation
If you're doing symbolic work in MATLAB, you need <http://www.mathworks.com/products/symbolic/ Symbolic Toolbox> If you want ...

mehr als 13 Jahre vor | 0

Beantwortet
Calculate displacement of a mdof sytem with ODE45?
You're definitely on the right track. Write your equations in matrix form My' = -Ky where y is the 8-element vector you describ...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Non-linear Simultaneous Fitting/Solution
You can treat this as a least-squares problem with 6 parameters: |a0|, |b0|, |k1|, |t|, |l1|, and |l2|. Then make your objectiv...

mehr als 13 Jahre vor | 0

Beantwortet
how to find the number of 1 in a single column?
idx = find(all(bsxfun(@eq,x,y),2)); where |x| is your matrix and |y| is your test vector (eg |y = x(1,:)|, in your example)...

mehr als 13 Jahre vor | 0

Beantwortet
obtaining the average value for a data set
It looks like the fourth column is what you want to calculate. If so, this will do the job, assuming that you have the first th...

mehr als 13 Jahre vor | 0

Beantwortet
Simultaneously fit multiple data sets -- with one of the fit parameters common between all data sets.
I don't think you're far off. If you have m fits of n parameters each, with one parameter the same across all m fits, then you ...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Using e-mail with matlab
From the error message, it looks like your program is called |sendmail|. This is bad, because you're trying to call the |sendma...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Add two excel data togather
count = xlsread('file1.xls'); counts = xlsread('file2.xls'); squaredsum = (count + counts).^2; (although from your sc...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Required :- A simple piece of code to list the files in a dir and return the select file name as a string.
As Sean suggests, |uigetfile| provides a standard file selection dialog box. Otherwise, you can also use |dir| or |ls| to get a...

mehr als 13 Jahre vor | 1

Beantwortet
ODE: equation solution problem
The problem is that the ODE solvers expect a function of two variables (x & y, in your case), but there's only one variable name...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
how to use the mathmatical constant "e" in conjunction with a vector.
Your problem isn't the |e|, it's that the two parts you're trying to multiply are both vectors, hence you need |.*| instead of |...

mehr als 13 Jahre vor | 0

| akzeptiert

Beantwortet
Trouble Using lsqcurvefit on experimental data
You appear to be using two different definitions of the fitting function. The function you pass to |lsqcurvefit| is f_l_fi...

mehr als 13 Jahre vor | 0

Beantwortet
Form of number
It looks as if the table's |ColumnFormat| property is set to |rat|, but that would require setting the property. It looks like ...

fast 14 Jahre vor | 1

| akzeptiert

Mehr laden