vec2mat function unrecognized by Cody
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Agent Cooper
am 19 Feb. 2014
Kommentiert: Agent Cooper
am 19 Feb. 2014
Hello,
I tried to solve the "Create times-tables" problem in Matlab Cody and it appears that the vec2mat function is not recognized, although the ind2sub function works fine.
This is my solution (verified in Matlab):
function m = timestables(n)
m = zeros(n);
element = 1:n^2;
[i,j] = ind2sub(size(m),element);
x = i.*j;
m = vec2mat(x,n)
Does anyone encountered the same problem? Why doesn't Cody support this function (which is not toolbox-related)?
0 Kommentare
Akzeptierte Antwort
Dishant Arora
am 19 Feb. 2014
vec2mat is defined in Communication system toolbox and cody doesn't recognize toolbox functions.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Historical Contests finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!