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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 1

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

quasi 14 anni fa | 1

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 4

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 1

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 1

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 5

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 1

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

| accettato

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

quasi 14 anni fa | 0

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

circa 14 anni fa | 1

| accettato

Carica altro