Solved


Edges of a n-dimensional Hypercube
Return the number of edges on an <http://en.wikipedia.org/wiki/Hypercube _n_-dimensional hypercube> (with an integer n &ge; 0). ...

8 years ago

Solved


Dots in a Circle
Return how many integer grid points there are inside a circle of radius _r_ centred at (0,0) (including points on the edge). ...

8 years ago

Answered
How can I change the non-singleton rhs dimensions of a vector?
'{''<html><table border=0 width=400 bgcolor=#FF0000><TR><TD>Hello</TD></TR> </table></html>'' }' ans = '{'<html><tab...

8 years ago | 0

Answered
Newtons method with two variables
Why in the name of god and little green apples do you need to write your own code? NEVER write your own code, when code writ...

8 years ago | 0

Answered
How to write a code for 3 Variables
Easy peasy. What, 2 lines? abc = [1 400 200 1 500 100 2 455 300 2 200 400 3 100 ...

8 years ago | 0

| accepted

Answered
Right array division with a vector
Works for me. 1./1:1:10 ans = 1 2 3 4 5 6 7 8 9 10 What error do you think...

8 years ago | 1

| accepted

Answered
How to speed up Matrix Vector Multipliacation
MATLAB automatically multi-threads computations where there will be a clear gain. For a matrix-vector multiply, it apparently do...

8 years ago | 2

| accepted

Answered
Curve Fitting Tool--Find average or integrate fit result
You want to integrate the results of a function after being fit. So... Why not use integral? Surely that is the obvious answe...

8 years ago | 0

Answered
How to find intersection points of two discrete curves?
I would suggest instead Doug Schwarz's utility, intersections. It was written to be as robust as possible, and Doug is a program...

8 years ago | 0

| accepted

Answered
Extracting iso-surface in n dimensional space
You won't do this easily. It would be a significant computational effort. No, there is no code that I know of (in the public dom...

8 years ago | 0

Answered
I've been having this error, and I really don't know why. Can someone help me? I'm using R2017B with Mac OS.
Because that is not the exponentiation character. Yes, it looks that way. 2ˆ3 2ˆ3 ↑ Error: The input characte...

8 years ago | 0

| accepted

Answered
How to Convert the Two dimensional Image to a one dimensional Array using ZigZag Scanning
(Note: I would not have answered this at all, because it is surely homework. But you already have gotten an answer. So you might...

8 years ago | 2

Answered
Solving large overdetermined system of equations
I almost always need to laugh out loud, when someone says they have a "large" system. That is not even close to large, by factor...

8 years ago | 1

| accepted

Answered
Is it possible to make a line of my matlab program invisible and at the same time include that line while running the program?
Sorry, but no. Well, and yes, to some extent. How is that for a definite answer? It kind of depends on what you really want to d...

8 years ago | 0

Answered
Matlab can not evaluate integration
I'd also wager that no analytical solution exists. Wolfram Alpha seems to agree with me, and the symbolic toolbox, but I don't h...

8 years ago | 0

Answered
How do I interpolate two data sets with different time scales and time points into the same scale in order to carry out a correlation?
1. Convert all of your dates into numeric values. date2num would work here. 2. Use interp1. Choose whatever interpolation met...

8 years ago | 0

Answered
I want to plot a set of points satisfying a given condition using this code, it gives me nothing.
A fragment from that code: ... P=[1 A*u C*(u + v) B*u 1]; R=roots(P) if abs(R)<=10 plot(u,v) hol...

8 years ago | 0

Answered
How is the division of two numbers carried out in Matlab?
Think about what the class of the result is. If you don't know how to use the class function to check that, then learn to read t...

8 years ago | 0

Answered
Define a vector with random steps
Ye gods. Why would you need to change the seed? You want it to start at 0, and end at 100? In 10 steps? t_inici = [0,sor...

8 years ago | 0

Answered
Does the function chol correctly indicates that a Matrix is positive definite ?
For the 10 millionth time, det is a bad way to check is a matrix is singular. (Not your fault for asking though.) In fact, it is...

8 years ago | 1

| accepted

Answered
Predicting behavior of unknown functions based on known functions
The process you want is called "interpolation". Effectively, you wish to infer values of two "things", given their values at kno...

8 years ago | 1

| accepted

Answered
Approximation of a function from taylor series (Symbolic Toolbox)
Well, you have explained your question. But that does not say that your question has a solution. You have three functions, al...

8 years ago | 0

Answered
How to obtain the original matrix of a cumsum()?
Just use diff! Then append the first element. A = rand(1,10); B = cumsum(A); C = [B(1), diff(B)];

8 years ago | 1

| accepted

Answered
how to plot f(x)=1/2(x1^2+x2^2+x3^2)?
Computers have screens that are TWO dimensional. Your brain understands how to look at a picture. It can even understand a 3-d s...

8 years ago | 0

Answered
Error with Addition and Subraction of large numbers (e+30)
Sorry. You can't do it with a double. This is a problem known as massive subtractive cancellation. It stems from the fact tha...

8 years ago | 2

| accepted

Answered
How to generate a matrix with the same correlation coefficient between all variables?
So, can we generate a "pseudo-random" array, with the EXACTLY specified correlation matrix? I'll play a little fast and loose wi...

8 years ago | 2

| accepted

Answered
Strange results when adding two vectors
Nope. Not insane. Just part of MATLAB, since the last few releases. Nor can you turn it off. If you don't like it, just don't ad...

8 years ago | 2

Answered
Solve for x in an algebraic equation
You can recognize that it is easy to write an equation that has no analytical solution? In fact, you just did exactly that! Yes,...

8 years ago | 0

Answered
Vectors and Sum operation
R = 1/sum(1./y); y is a vector. You want to divide EACH of the elements of y into 1. So you use the ./ operator, which is d...

8 years ago | 1

| accepted

Answered
exp(infty1) * erfc(infty2) = NaN
You have several choices. 1. Use the symbolic Toolbox, which can handle high precision computations. x = sym(200); v...

8 years ago | 0

| accepted

Load more