[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert number in "*"

From: Nicholas Jankowski
Subject: Re: convert number in "*"
Date: Sat, 2 Feb 2019 08:16:30 -0500

> i want to convert  0 in nan and 1 in *
> ans=[ nan * nan  nan * * ]
> it's possible to do this?

It really depends on what class of output you want.

That mixes numbers and characters. So you could convert to a character array using different string manipulations, and substitute * and NaN for 1 and 0 in the char array.  or as Phillip mentioned, a cell array would do it.  

So the answer is, what is it you are really trying to do?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]