Inoperability between Mac (Intel) and Windows
1 次查看(过去 30 天)
显示 更早的评论
I am developing on a Mac. My partner is using a Windows box. We have something happen that I can't understand. It was a simple task - I wanted to select a sub portion of an array and set outside of that portion to be zero out. I defined the indices by a variable "filt". I created a zero array call it y of the proper length and set y(filt)=x(filt) where x is the original array.
It worked fine on the Mac but barfed on the Windows box. After much aggravation I tried changing the name of the index parameter to "idx_filt" and it worked fine on both.
Any explanation would be greatly appreciated. I cannot find anything on the documentation on Matlab on my Mac that indicates that "filt" might be a forbidden variable name.
3 个评论
Jason Ross
2011-4-18
Specific error messages?
Version of Windows, OSX?
Version of MATLAB on both machines?
采纳的回答
Rob Graessle
2011-4-18
'filt' is the name of a function in the Control System Toolbox:
>> doc filt
Perhaps the Mac does not have Control System Toolbox installed while the PC does. In any case, you should avoid using 'filt' as a variable name.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!