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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 1

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

más de 13 años hace | 1

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 4

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

más de 13 años hace | 0

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

más de 13 años hace | 1

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 1

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 5

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 1

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

| aceptada

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

más de 13 años hace | 0

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

casi 14 años hace | 1

| aceptada

Cargar más