f



Error? s = assignin('base','s',tf('s'));

Hi,
I need a little help here. Could anyone please tell me what is wrong
with this command?

s = assignin('base','s',tf('s'));

The matlab syntax is -- assignin(ws, 'var', val)
Basically I just want to add s=tf('s') into the base workspace.

Jack
0
Jack6744 (1)
8/15/2006 10:33:52 AM
comp.soft-sys.matlab 211266 articles. 21 followers. lunamoonmoon (257) is leader. Post Follow

1 Replies
1684 Views

Similar Articles

[PageSpeed] 43

"Jack" <Jack@Jill.com> wrote in message 
news:ef3e449.-1@webcrossing.raydaftYaTP...
> Hi,
> I need a little help here. Could anyone please tell me what is wrong
> with this command?
>
> s = assignin('base','s',tf('s'));
>
> The matlab syntax is -- assignin(ws, 'var', val)
> Basically I just want to add s=tf('s') into the base workspace.

What does the error message say?  Something about too many output arguments, 
right?  How many output arguments does the documentation for ASSIGNIN show 
that it should return?  How many are you asking it to return?

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/assignin.html

-- 
Steve Lord
slord@mathworks.com 


0
slord (13689)
8/15/2006 12:51:45 PM
Reply:

Similar Artilces:

It's on-it's off-it's on, it's off -WHY?
IS THIS THE CORRECT FORUM? Hope so. We have three computer networked at home...all with Windows XP. one of those is a laptop. Some mornings all 3 can see each other and transfer files...then mysteriously one or more will disappear. No contact....then later it's back. The laptop is the worst. Most often it won't let us in...but sometimes it will. No obvious reason. The most INFURIATING part is the message "see your administrator". Dammit Bill Gates...don't you realize that most networks are small offices without a Majestic Royal Administrator sitting his i...

How to turn off 'N', 'S', 'E', 'W'
in the map lat and lon labels? I'm doing a final figure and I really don't need an 'N' after every latitude label, jus the number would suffice. How do I turn of the letters followin the number? What function / toolbox are you refering to?!? Being a little more specific would sure help to get an answer ... Sebastian ...

It's primitive; it's dumb; it's brittle--but it's AI.
http://www.scn.org/~mentifex/aisource.html is a pathway to the http://code.google.com/p/mindforth AI project at Google Code. The AI is primitive because it has only enough features to demon- strate thinking. It is "dumb" inasmuch as it has barely any IQ. It is extremely brittle because the slightest change in the code can destroy the artificial mind crafted so painstakingly in Forth: Arthur -- http://agi-roadmap.org/Milestones -- ten years of progress. ...

'^=' and '~='?
Hello, What is the difference between '^=' and '~='? Thanks, Duckhye ...

'is not' or '!='
A newbie question to you; what is the difference between statements like: if x is not None: and if x != None: Without any context, which one should be preferred? IMHO, the latter is more readable. On 2014-08-18 21:35, ElChino wrote: > A newbie question to you; what is the difference between statements > like: > if x is not None: > and > if x != None: > > Without any context, which one should be preferred? > IMHO, the latter is more readable. > "x == y" tells you whether x and y refer to objects that are equal. "x is y" tells you whether x and y actually refer to the same object. In the case of singletons like None (there's only one None object), it's better to use "is". "ElChino" <elchino@cnn.cn>: > A newbie question to you; what is the difference between statements > like: > if x is not None: > and > if x != None: Do the following: take two $10 bills. Hold one bill in the left hand, hold the other bill in the right hand. Now, the bill in the left hand "is not" the bill in the right hand. However, the bill in the left hand "==" the bill in the right hand. > Without any context, which one should be preferred? > IMHO, the latter is more readable. In almost all cases, both tests would result in the same behavior. However, the "is not" test is conceptually the correct one since you want...

Nvidia's 'Nalu' vs ATI's 'Ruby'
http://karpo.org/images/Dunno/Ruby.jpg Nvidia's GeForce 6800 (NV40) 'Nalu' demo consists of 300,000 polygons. very very impressive shit! ATI's Radeon X800 (R420) 'Ruby' demo consists of only 80,000 polygons. however it is also rendering a background with other elements. closer to what would be in an actual game. now, console gamers: keep in mind, whatever ATI has been able to come up with at this point (re: the R420 / Radeon X800) is a stepping stone to what they'll be able to have in 2005 for Xbox Next, and in 2006 for GCNext :) On 14 Apr 2004 21:33:15 -0700, n...

Nvidia's 'Nalu' vs ATI's 'Ruby'
http://karpo.org/images/Dunno/Ruby.jpg Nvidia's GeForce 6800 (NV40) 'Nalu' demo consists of 300,000 polygons. very very impressive shit! ATI's Radeon X800 (R420) 'Ruby' demo consists of only 80,000 polygons. however it is also rendering a background with other elements. closer to what would be in an actual game. now, console gamers: keep in mind, whatever ATI has been able to come up with at this point (re: the R420 / Radeon X800) is a stepping stone to what they'll be able to have in 2005 for Xbox Next, and in 2006 for GCNext :) On 14 Apr 2004 21:33:15 -0700, n...

There's 'new' but no 'delete'
Hi, If I use: "myobject = new MyObject" do I just delete it with "myobject = nil"? There's no "delete", how do I free any memory used within myobject? Thanks, Paul On 15.04.2005 05:35 Mat, in 425e45ff$0$30370$afc38c87@news.optusnet.com.au, �pf� <paulfredlein@NOSPAMoptusnet.com.au> wrote: > Hi, > > If I use: "myobject = new MyObject" do I just delete it with "myobject = > nil"? There's no "delete", how do I free any memory used within myobject? > > Thanks, > > Paul ...

What's the difference between 'close' and 'delete'?
Dear all As you know, close(h) and delete(h) both methods can close figure window, when h is a handle of a figure. What's the difference between the two methods? Regards Mayi DA 2007-11-26 "Damayi" <damayi@gmail.com> wrote in message news:3208c5ed-fbde-4f87-9342-36e6fffd98bb@s36g2000prg.googlegroups.com... > Dear all > > As you know, close(h) and delete(h) both methods can close figure > window, when h is a handle of a figure. What's the difference between > the two methods? CLOSE calls the function specified in the CloseRequestFcn property of the ...

What's the meaning of 'assert' and 'deassert' ?
thanks. On 2006-11-21, =?gb2312?B?yb3WruGw?= <lan54160@gmail.com> wrote: Given the copious context you've provided, this is just a guess: assert: set a signal to its "active" state. deassert: set a signal to its "inactive state. If a signal is active-low, "asserting" that signal means setting it low and deasserting it means setting it high. -- Grant Edwards grante Yow! BARBARA STANWYCK at makes me nervous!! visi.com ...

What's the difference between 'upfirdn' and 'conv' ?
Hello to everyone, I try to figure out what's the difference between upfirdn and conv regarding the convolution operation. I pass a signal through a bank filter 32-channel filter bank. I have two method for computing the output signal at the analysis filter bank. I can use the upfirdn command like this : yout=upfirdn(input,H_analysis,1,32); H_analysis is my analysis filter bank. Otherwise I can compute the output signal like this : for k=1:32 yout(k,:)=downsample(conv(H_analysis(k,:),input),32); end It should be the same operation, but why do I have different le...

Scilab's 'optim' and 'splin'
I've got this really cool application that makes a smoothed line using splines, then fits it to a source line using a nonlinear weighting. I'm currently using SciLab with it's 'optim' and 'splin' function to do this, but now I need to write some embeddable C++ code. The 'splin' function is obvious -- it generates a spline from a number of inflection points. The 'optim' function as I am using it uses a quasi-Newton method, which is working just fine for me. Before I go and write this stuff up by hand, does anyone have any suggestions on wher...

100's of frames and 100's of alpha's into transparant GIF or PNG's
I render game sprites/floor tiles using lightwave. I output the frames and I output an alpha-image so I can seperate the objects from the renderings. I used to combine the alpha and the render in photoshop by hand, as photoshop can only load one batch of source files in it's action-macros. Now that the spritecount has risen into the double digits, I'm looking for a way to combine 100's of frames and 100's of alpha's into transparant GIF or PNG's. I have had no luck in photoshop for this, it only lets me specify one source folder per action. Does anyone have a clever ...

error: expected '=', ',', ';', 'asm' or '__attrib
Hi I'm trying to compile an ADC Driver & come acrosss the following error. I've no experience writing drivers before, and hence have no clue how to fix it. Hope someone out there has encountered the problem & suggesst a fix for the same. The Error is I get is : qadc.c: At top level: qadc.c:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qadc_read' make: *** [qadc.o] Error 1 [root@localhost qadc]# ########################################################################### ADC Driver Code ##...

error: expected '=', ',', ';', 'asm' or '__attrib
Hi I'm trying to compile an ADC Driver & come acrosss the following error. I've no experience writing drivers before, and hence have no clue how to fix it. Hope someone out there has encountered the problem & suggesst a fix for the same. The Error is I get is : qadc.c: At top level: qadc.c:97: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'qadc_read' make: *** [qadc.o] Error 1 [root@localhost qadc]# ########################################################################### ADC Driver Code ####################...

[News] KDE's 'Flip Mode' Better Than Vista's 'Flop Mode'?
KDE Digest ,----[ Quote ] | At the University I attend, I am enrolled in an OpenGL computer graphics | course, and so I learned the basics of OpenGL programming. With the upcoming | KDE 4.0 release, I thought about trying to see if I could write a small | effect for KDE. This was around Christmas - I was missing the "seasons" | effect. So, inspired by Compiz Fusion's Snow Effect, I implemented this | effect for KDE. `---- http://commit-digest.org/issues/2008-01-27/ Watch the image. Related: Broken Aero interface in Vista ,----[ Quote ] | Vista has beautiful user ...

Error while obtaining sizes from MEX S-function 'forward' in block 'dummy/Dynamic_Model/S-Function'. MATLAB error message:.
Hi to everybody, I created the file forward.dll using the command: mex -DWIN32 -output forward model_d.c model_s.c sdlib.c assigns.c contact.c derivs.c gmc.c impact.c inits.c invert.c lcp_solver.c lmdif_c.c mathtools.c object.c output.c pipetools.c readmuscles.c readtools.c sdfor.c spring_based.c wrapping.c gcvspl.c user_def.lib forward.lib acpp.lib qhull.lib solid.lib wrap.lib I need to run the command: set_param([subsystemname,'/','S-Function'],'function name','forward','parameters','[0],[0],[0],[0],[0],[0],[1 0 0 0 20],[0]'); ...

'''''''''''''The Running Update/Append Queries Using VBA code Ordeal''''''''''''''
Hello fellow programmers, I am trying to run an append/update query from code, a command button on a form initiates the queries. the format i am using is; _____________________________________________________ SELECT "criteria" FROM "criteria" WHERE "criteria" UPDATE/APPEND "field selections" RecordSource "qryExample" = above text strings" _______________________________________________________________________ When i am running a SELECT query in this manner it works fine with no problems, and accepts the values of specified linked for...

Prob getting '1's and '0's
Hi all =) I have a var named Data_Bin which is in <10614*8char> containing binary '1's and '0's. eg Data_Bin = 11111111 11111111 11111111 11111111 .... ... I tried 2 methods, Method 1: aa = []; for i=1:84912 aa = [aa, Data_Bin(i)]; end Result: It gave me a 1*1 matrix but if I transpose the result, it'll give me a col vector. Method 2: aa = []; for i=1:84912 aa (1, i) = Data_Bin(i); end Result: It gave me a row vector of [49 49 49 49 ...] How do I get a row vector, 1*84912, from Data_Bin?? Thank you. "yingmu h...

What's Zonnon's aim at 'highest level' ?
Hi, So nice to 'enter the Zonnon-tree' at http://www.zonnon.ethz.ch using only native-oberon tools, with no trouble. No crap like 'must enable cookies' & unwarranted *.pdf etc. formats. It's the minimalist, clear format eg. > Examples in Zonnon for Algorithms & Data Structures book > Zip archive (40 KB size). ie. showing the download-file-size, which makes for Swiss quality ? I seek a highest level [overview] of Zonnon's aims to evaluate if I should spend resources investigating further. Let's try and analyse the provided description: > It ...

1 to 20 with x number of 1's, 2's, 3's, ... 20's
This is probably a simple thing to do, so perhaps someone would send me in the right direction. I need to generate a list containing numbers from 1 to 20, say. But I cant just use A = 1:20, for example, because that provides me only one instance of each of the values. What I need is X instances for each value. For example, 5 ones, twos, threes, and so forth. Is there a simple command for this? Regards, Ulrik. On Sep 9, 10:52=A0am, "Ulrik Nash" <u...@sam.sdu.dk> wrote: > This is probably a simple thing to do, so perhaps someone would send me i= n the right dir...

Python's __getattr__, Perl's autoload, Ruby's method_missing, and Smalltalk's #doesNotUnderstand
I'm still new here, and I just completed reading CLTL's documentation on packages and On Lisp's documentation on CLOS. It doesn't appear that Lisp has the equivalent of Python's __getattr__, Perl's autoload, Ruby's method_missing, and Smalltalk's #doesNotUnderstand. That is, there is no way I can do this (without new-function being defined): (new-function) and have it call some other function like this: (missing-symbol 'new-function) whose returning value will be evaluated as the value of new-function. Or did I miss something? Jonathan Gardner <...

The iPhone's features: What's new, what's not
http://crave.cnet.com/8301-1_105-9733965-1.html?tag=cnetfd.mt Unless you've cut yourself off from all media access this year, you know that on Friday, June 29 Apple will release its iPhone with AT&T. Ever since the device's unveiling last January, the tech world has been running in circles asking what the iPhone will be like, what it will do, and how it will do it. But because Apple hasn't been the leakiest of faucets when it comes to specs, the hype has resulted in a lot of speculation instead. Of course, that will all change in several days, as you can be sure everyone lucky...

'''''''''''''The Running Update/Append Queries Using VBA code Ordeal'''''''''''''' #2
Hi, Thanks for ur help there HJ. I know how to do the tasks you specified there. I would like for the update query to use field values from some of the fields on the form (frmInvoices) such as InvoiceNumber, DateFrom, DateTo. My problem is that an append/update query can't find the values in the open Form (frmInvoices) when I specify them as; [Forms]![frmInvoices]![InvoiceNumber] a select query has no problem finding the field values on a form. please help. Aaron Hi Aaron, Could you post the entire code that you are having trouble with? Now it is not possible to see what goes wrong. HJ "Aaron" <aaron@rapid-motion.co.uk> wrote in message news:260d7f40.0408120245.2f3d01f8@posting.google.com... > Hi, > > Thanks for ur help there HJ. > > I know how to do the tasks you specified there. > > I would like for the update query to use field values from some of the > fields on the form (frmInvoices) such as InvoiceNumber, DateFrom, > DateTo. My problem is that an append/update query can't find the > values in the open Form (frmInvoices) when I specify them as; > > [Forms]![frmInvoices]![InvoiceNumber] > > a select query has no problem finding the field values on a form. > > please help. > > Aaron First off, if you are not always using all the parameters specified in your form, then you have to add parameters to your query on the fly. Also, you can't just do something like qdf.SQL = "SE...

Web resources about - Error? s = assignin('base','s',tf('s')); - comp.soft-sys.matlab

Resources last updated: 2/29/2016 10:04:02 AM