Cody

Solution 1925134

Submitted on 7 Sep 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
[s,g] = unix('set'); [a,nb] = regexp(g,'HOSTNAME=','split'); sol = regexp(a{2},'\n','split'); sol = sol{1}; % 11-July-2012 strcmp replaced isequal to accept answers of class java.lang.String assert(strcmp(your_fcn_name,sol),sprintf('Solution is %s',sol))

s = 0 g = 'ARCH=glnxa64 AUTOMOUNT_MAP= BASEMATLABPATH= BASH=/bin/bash BASHOPTS=cmdhist:complete_fullquote:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="3" [2]="48" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") BASH_VERSION='4.3.48(1)-release' CONNECTOR_VERSION=cpp DATA_CHECK=3167BAB29BF5415CED45EF6C0954C06169CE99AA073111D875F37927B0D9DD9D4E7170B5B07B1C1BFCD10579ADF75FFF861A13EAAAF22B14CF61B29AD34289E0AB618CEB60B03340CAC4A81FA774780F5AB0CE6E59FB4F2D4A3B2AB979DDDA51BA4ECE0DF30F886E79538E6E438356D03AAD83E563BCDF998035BEF99A6086421A047340BFBFD69E7C1B02E404364013131FD9BDF7E1701E99D850064F67FD15B78A DEBIAN_FRONTEND=noninteractive DEFAULT_PCT_POOL_SIZE=2 DIRSTACK=() DISPLAY=:1.0 EUID=1000 EXTRA_XVFB_OPTS='-nolock -ac -extension RANDR +render -noreset' GCC_HOME=/usr/bin/gcc-6.3.0/bin/ GCC_VERSION=gcc-6.3.0 GROUPS=() HOME=/home/mluser HOSTNAME=0784e04f1c8c HOSTTYPE=x86_64 HTTP_MATLAB_CLIENT_GATEWAY_PUBLIC_PORT=8000 IFS=$' \t\n' INITRD=no JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre KMP_BLOCKTIME=1 KMP_HANDLE_SIGNALS=0 KMP_STACKSIZE=512k LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_NUMERIC=C LD_LIBRARY_PATH=/opt/mlsedu/matlab/R2019a/cefclient/sys/os/glnxa64:/opt/mlsedu/matlab/R2019a/sys/opengl/lib/glnxa64:/opt/mlsedu/matlab/R2019a/sys/os/glnxa64:/opt/mlsedu/matlab/R2019a/bin/glnxa64/mvm:/opt/mlsedu/matlab/R2019a/bin/glnxa64:/opt/mlsedu/matlab/R2019a/extern/lib/glnxa64:/opt/mlsedu/matlab/R2019a/runtime/glnxa64:/opt/mlsedu/matlab/R2019a/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/opt/mlsedu/matlab/R2019a/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64/stubs: LM_LICENSE_FILE=13501@motw-flexlm-201701-a.wsroute.mathworks.com:13501@motw-flexlm-201701-e.wsroute.mathworks.com LOGNAME=mluser MACHTYPE=x86_64-pc-linux-gnu MAIL=/var/mail/mluser MATLAB_CONNECTOR_AUTOSTART_ENABLED=false MATLAB_CONNECTOR_HOSTING_ENVIRONMENT=tmw MATLAB_LOG_DIR=/var/mlsedu/log MATLAB_ONLINE_ROOT=/opt/mlsedu/mdcsserver/latest MATLAB_PREFDIR=/tmp/matlabpref MATLAB_VER=R2019a MKL_DOMAIN_NUM_THREADS= MKL_NUM_THREADS= MW_CRASH_MODE=native MW_DIAGNOSTIC_DEST='file=/var/mlsedu/log/connector_$0_0.log' MW_DIAGNOSTIC_SPEC='connector::http::server=all;connector::container::http=all;connector::interpreter=all;connector::worker=all;connector::worker::dynamic_files=all;connector::framework=all;connector::session_m=all;connector::lifecycle=all;connector::webgraphics=all' NVIDIA_CUDNN=/usr/local/cudnn NVIDIA_DRIVER_CAPABILITIES=compute,utility NVIDIA_VISIBLE_DEVICES=all OPTERR=1 OPTIND=1 OSG_LD_LIBRARY_PATH=/opt/mlsedu/matlab/R2019a/sys/openscenegraph/lib/glnxa64 OSTYPE=linux-gnu PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PPID=24259 PREWARM_GPU=false PREWARM_SIMULINK=true PREWARM_SYMBOLIC_TOOLBOX=true PROXY_SERVER=squid-proda-useast1.wsroute.mathworks.com PROXY_SERVER_PORT=3128 PS4='+ ' PWD=/users/mss.system.0zUcva QT_IM_MODULE=compose REGISTER_WORKER=false SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=5 START_MATLAB_COMMAND=/opt/mlsedu/mdcsserver/latest/scripts/startmatlab.sh TERM=dumb TOOLBOX=/opt/mlsedu/matlab/R2019a/toolbox UID=1000 USER=mluser WORKER_CONFIG=/tmp/worker.properties WS_ENV=production WS_OVERRIDE_FILE=/tmp/ws_override.properties XFILESEARCHPATH=/opt/mlsedu/matlab/R2019a/sys/java/jre/glnxa64/jre/lib/locale/%L/%T/%N%S: _=/bin/bash _MUPAD_EXPLICIT_ARCH_=glnxa64 _MUPAD_EXPLICIT_PREFDIR_=/tmp/matlabpref/symbolic __KMP_REGISTERED_LIB_3336=0x7f1f5995ca08-cafe7a63-libiomp5.so capabilities_avoidTiledLayout=false ' a = 1×2 cell array {'ARCH=glnxa64↵AUTOMOUNT_MAP=↵BASEMATLABPATH=↵BASH=/bin/bash↵BASHOPTS=cmdhist:comp…'} {'0784e04f1c8c↵HOSTTYPE=x86_64↵HTTP_MATLAB_CLIENT_GATEWAY_PUBLIC_PORT=8000↵IFS=$' …'} nb = 1012

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test1 (line 7) assert(strcmp(your_fcn_name,sol),sprintf('Solution is %s',sol))