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)?

 채택된 답변

Dishant Arora
Dishant Arora 2014년 2월 19일

0 개 추천

vec2mat is defined in Communication system toolbox and cody doesn't recognize toolbox functions.

댓글 수: 1

Agent Cooper
Agent Cooper 2014년 2월 19일
Dishant,
Looks like I was wrong when I thought that vec2mat isn't a toolbox function. Thank you for the information.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Event Functions에 대해 자세히 알아보기

태그

질문:

2014년 2월 19일

댓글:

2014년 2월 19일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by