How does this function work? - echo, assert ...
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Daigo
el 20 de En. de 2022
Respondida: Walter Roberson
el 20 de En. de 2022
I found this solution in Cody but I have no idea what is going on.
function ans = remove_from_cell_array(x,to_remove)
! echo "function assert(~) " >./assert.m
end
Does anyone know how this function is working? This function is supposed to remove specific elements (specified by `to_remove`) from a cell array, `x`.
Respuesta aceptada
Walter Roberson
el 20 de En. de 2022
The function does none of the actual work needed. Instead it overrides the functions that are used to check that the solution works, so in each case the altered code says "No problem here!" when the scoring function goes to test the code.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Multidimensional Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!