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:
help need to knowwhat is this Error

Subject: help need to knowwhat is this Error

From: kk KKsingh

Date: 24 Jun, 2010 20:48:05

Message: 1 of 2

Hi !

I am trying to run a file its from J Fessler libray !

When i type nufft ! it runs a .m file which uses some function and it gives following error

Undefined function or method 'isvar' for input arguments
of type 'char'.


its when function is trying to execute these lines




Error in ==> nufft2_err_mm at 32
if ~isvar('alpha') | isempty(alpha)

Error in ==> nufft at 39
printm('err alf1 %g best %g', ...



if ~isvar('alpha') | isempty(alpha)
alpha = [1]; % default Fourier series coefficients of scaling factors
end
if ~isvar('beta') | isempty(beta)
beta = 0.5; % default is Liu version for now
end

Subject: help need to knowwhat is this Error

From: Walter Roberson

Date: 24 Jun, 2010 21:19:24

Message: 2 of 2

kk KKsingh wrote:

> I am trying to run a file its from J Fessler libray !
>
> When i type nufft ! it runs a .m file which uses some function and it
> gives following error
>
> Undefined function or method 'isvar' for input arguments
> of type 'char'.


isvar() is not provided by Mathworks; it is perhaps provided by a different
portion of the library.

You can write your own isvar() as

isvar = @(name) exist(name, 'var');

Tags for this Thread

No tags are associated with 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