Hello every one i have an error when run this code can eny help?

4 ビュー (過去 30 日間)
Mostfa Abd El-Aziz
Mostfa Abd El-Aziz 2018 年 9 月 26 日
回答済み: Star Strider 2018 年 9 月 26 日
% Arrange Text images in interleaved manner two per Color plane function_ [im_alt] = altertxt(im_tx1,im_tx2) % This function arrange the pixels alternatively from Text image 1 and 2, and % returns the interleaved Text image % im_tx1 - Input Text image 1,3,5 to be encoded % im_tx2 - Input Text image 2,4,6 to be encoded % im_alt - Output Interleaved Text image
Error : Undefined function or variable 'function_'.
Error in Untitled (line 63) function_ [im_alt] = altertxt(im_tx1,im_tx2)

回答 (1 件)

Star Strider
Star Strider 2018 年 9 月 26 日
You inserted an underscore _ character at the end of ‘function’:
function_ [im_alt] = altertxt(im_tx1,im_tx2)
try this instead:
function [im_alt] = altertxt(im_tx1,im_tx2)

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by