Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
fileparts warning in R2010b

Subject: fileparts warning in R2010b

From: Mike Liu

Date: 1 Nov, 2010 01:21:03

Message: 1 of 4

Hi

I use R2010b.
I ran the following:
for i=1:n
    [pathstr, name, ext, versn] = fileparts(char(All_Img_Path_and_Filename(i)));
     ....
end
then I get warning messages:
Warning: The fourth output, VERSN, of FILEPARTS will be removed in a future release.
> In fileparts at 35

If I use R2010a, there is no such warning.

Mike Liu

Subject: fileparts warning in R2010b

From: Steven_Lord

Date: 1 Nov, 2010 13:30:44

Message: 2 of 4



"Mike Liu" <sulfateion@gmail.com> wrote in message
news:ial4lu$fh$1@fred.mathworks.com...
> Hi
>
> I use R2010b.
> I ran the following:
> for i=1:n
> [pathstr, name, ext, versn] =
> fileparts(char(All_Img_Path_and_Filename(i)));
> ....
> end
> then I get warning messages:
> Warning: The fourth output, VERSN, of FILEPARTS will be removed in a
> future release.
>> In fileparts at 35
>
> If I use R2010a, there is no such warning.

That's correct and expected behavior, as described in the Release Notes for
release R2010b.

http://www.mathworks.com/help/techdoc/rn/bskfo3t.html#bskfo33

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: fileparts warning in R2010b

From: dpb

Date: 1 Nov, 2010 13:40:48

Message: 3 of 4

Steven_Lord wrote:
>
>
> "Mike Liu" <sulfateion@gmail.com> wrote in message
> news:ial4lu$fh$1@fred.mathworks.com...
>> Hi
>>
>> I use R2010b.
...
>> then I get warning messages:
>> Warning: The fourth output, VERSN, of FILEPARTS will be removed in a
>> future release.
...

> That's correct and expected behavior, as described in the Release Notes
> for release R2010b.
...
Again I'd question whether it's a good decision to break existing code
going forward when it doesn't seem to hurt a thing to simply return the
null/empty argument and retain source code compatibility.

This one is rather trivial but illustrates again the issue of there not
really being any standard for Matlab syntax adopted by TMW.

--

Subject: fileparts warning in R2010b

From: Steve Amphlett

Date: 22 Mar, 2012 10:08:12

Message: 4 of 4

dpb <none@non.net> wrote in message <iamg9n$krf$1@news.eternal-september.org>...
> Steven_Lord wrote:
> >
> >
> > "Mike Liu" <sulfateion@gmail.com> wrote in message
> > news:ial4lu$fh$1@fred.mathworks.com...
> >> Hi
> >>
> >> I use R2010b.
> ...
> >> then I get warning messages:
> >> Warning: The fourth output, VERSN, of FILEPARTS will be removed in a
> >> future release.
> ...
>
> > That's correct and expected behavior, as described in the Release Notes
> > for release R2010b.
> ...
> Again I'd question whether it's a good decision to break existing code
> going forward when it doesn't seem to hurt a thing to simply return the
> null/empty argument and retain source code compatibility.
>
> This one is rather trivial but illustrates again the issue of there not
> really being any standard for Matlab syntax adopted by TMW.
>
> --

Just got stung by this change. Mutual customer unhappy. C'est la vie.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us