Estadísticas
1 Problema
13 Soluciones
CLASIFICACIÓN
12.068
of 289.913
REPUTACIÓN
2
CONTRIBUCIONES
6 Preguntas
1 Respuesta
ACEPTACIÓN DE RESPUESTAS
33.33%
VOTOS RECIBIDOS
2
CLASIFICACIÓN
of 19.607
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
23.315
of 144.279
CONTRIBUCIONES
1 Problema
13 Soluciones
PUNTUACIÓN
185
NÚMERO DE INSIGNIAS
3
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Feeds
Pregunta
Customizing tab completion
I have a function that accepts paired name/value arguments, e.g. solve(A,b,'accuracy',1e-13,'method','LU','threshold',1e-...
alrededor de 12 años hace | 1 respuesta | 0
1
respuestaProblema
Column norms of a matrix
Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...
alrededor de 12 años hace | 9 | 432 solvers
Resuelto
Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...
alrededor de 12 años hace
Resuelto
The Hitchhiker's Guide to MATLAB
Output logical "true" if the input is the answer to life, the universe and everything. Otherwise, output logical "false".
alrededor de 12 años hace
Resuelto
Column norms of a matrix
Given a matrix M, return a vector y such that for each k y(k)=norm(M(:,k)) (y(k) is the Euclidean norm of the k-th col...
alrededor de 12 años hace
return value optimization when overwriting
It seems that you can indeed, see http://blogs.mathworks.com/loren/2007/03/22/in-place-operations-on-data/? I cannot understa...
alrededor de 12 años hace | 0
Pregunta
overloading x=[a b; c d]
Suppose a,b,c,d are instances of a custom Matlab class. I can redefine [a b] and [a;b] by overloading horzcat() and vertcat(); h...
alrededor de 12 años hace | 1 respuesta | 2
1
respuestaResuelto
Remove any row in which a NaN appears
Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...
alrededor de 12 años hace
Resuelto
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
alrededor de 12 años hace
Resuelto
Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...
alrededor de 12 años hace
Resuelto
Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...
alrededor de 12 años hace
Resuelto
Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...
alrededor de 12 años hace
Resuelto
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
alrededor de 12 años hace
Resuelto
Sorted highest to lowest?
Return 1 if the input is sorted from highest to lowest, 0 if not. Example: 1:7 -> 0 [7 5 2] -> 1
alrededor de 12 años hace
Resuelto
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
alrededor de 12 años hace
Resuelto
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
alrededor de 12 años hace
Pregunta
return value optimization when overwriting
Consider the following scenario. function A=frobnicate(A) A(1)=1; end X=zeros(2000,2000); X=frobnicate(X); ...
alrededor de 12 años hace | 2 respuestas | 0
2
respuestasPregunta
Detecting "a and b are the same variable" in O(1) via pointers
I know Matlab uses copy-on-write; that is, if I assign |a=b| and then never modify |a| and |b|, they point to the same chunk of ...
alrededor de 12 años hace | 2 respuestas | 0
2
respuestasPregunta
GLOBAL could be very inefficient
I am using a GLOBAL statement inside an if command, so that I import the global variable into the local namespace only if it is ...
más de 12 años hace | 1 respuesta | 0
1
respuestaPregunta
GLOBAL could be very inefficient
I am using the GLOBAL instruction inside an if statement, to create a global variable only if it is needed. However, the code an...
más de 12 años hace | 0 respuestas | 0