Access the file "ndgrid' MATLAB

Hi, I am a novice user of LabView MathScript module, I have two problems when integrating my MATLAB LabView code, for the process of image reconstruction:

1. for example, I have a table that contains positive and negative numbers: a = - 5:5 (this will give me a table 'a' - 4-5-3-2-1 0 1 2 3 4 5)

If I want to get rid of negative values in this table, under MATLAB, I do: (a<0)=0 (this="" will="" give="" me="" an="" array="" 'a'="" of="" 0="" 0="" 0="" 0="" 0="" 0="" 1="" 2="" 3="" 4="">

However, in LabView Mathscript, this command gives me the following error:

90026 error occurred to the error in function = on line 44: indexes for a matrix of indexation of operation must be real and positive integers.
LabVIEW: Index for an index of the matrix operation must be real and positive integers.

Is it possible to avoid this error message?

2. in my program, I tried to call a built-in MATLAB function called "ndgrid.m".

LabView don't know initially, this function that shows me the following error message:

Error-90031 occurred at an unknown symbol on line 18: ndgrid

I then copy the file "ndgrid.m" in the MATLAB folder and copy it into the working directory for LabView, but find the following errors:

90162 error occurred at line 38, column 12: unexpected char: ' {'}

C:\Documents and Settings\ms350\Desktop\MIT_KENT\ndgrid.m

LabVIEW: A recognition error occurred when generating a stream of tokens.

It seems that MathScript complains of the "{" "}" symbols. Is it possible to overcome these errors?

Hi hykwei,

Extract VI below deals with two issues:

1. the code:

a = - 5:5; a (one<0) =="">

should work without a doubt.  If you have a warning glyph (), however, you will get the error you mentioned.  This was reported to R & D (#223605) for investigation.  If you look at the code snippet, you can use for loops and if statements to create the same result.  Refer to this post for more information on the resolution of the glyphs of warning (MathScript Nugget #6: warning glyphs).

2 ndgrid doesn't seem to be a default command for MathScript (functions of the MathScript RT Module support).  I'm also sure that the module does not allow brackets in its syntax, what could be the reason for the error, you see.

What you can do in the meantime is the meshgrid2d function allows to assign values to 2 variables (if you use context-sensitive help, you can get the documentation or type help meshgrid2d in the MathScript window).  I added a code example in the extract VI below to show how to use the function.  In addition, the instructions of the custom function can be a good help: http://zone.ni.com/reference/en-XX/help/371361F-01/lvhowto/mathscript_function_syntax/

Tags: NI Products

Similar Questions

  • To access the files Photo and video imported photos

    I had turned off as long as I could before moving to the home of iPhoto to Photos. I now use of El Capitan, with Photos and finds it difficult to find the photo and movie files that I import. In the program there, but when I search by name, they will not be displayed. The Terminal solution for show hidden files (defaults write QLEnableXRayFolders AppleShowAllFiles YES) does not work. I export the files from Photos to a new location and then can see them in a search. Is there a way to fix this? I remember he was in earlier operating systems, but am not having much luck right now.

    Thank you.

    Yes - there is access via the media browser (in the lower left corner of the Panel source in each window open/attach/upload under Support == > photos == > Photos) or as you would via export - still not access you it directly with the finder (and you should have never done that in the past - now with many operations in the background and iCLoud is simply not possible as only the program of database SQLite Photos) the status of the contents of the library)

    This is for iPHoto but is most often still OK for Photos - How do I access the files in iPhoto

    LN

  • To access the files from the computers on the same network.

    We recently bought two Macs and an airport Time Capsule as we were told that it would allow us to access the files from one computer to another. Run us a business out of our home and require both Mac to be able to access the files from each other or have at least a common location to save etc. Both Mac is put back up automatically and lift you under the "Shared" section of the Finder. The airport shows also here as well. I don't understand how to get this to work so that I can share files easily. Any help would be appreciated.

    Open the system preferences sharing pane, start sharing files if necessary, and then use the connection to the server command in the Finder menu go.

    (142670)

  • I am trying to open a file and make me notice that the required index.xml file is missing. Is it possible to access the file? I don't know why this happened.

    I am trying to open a file in Pages 09 and am getting notice has the required index.xml file is missing. Is it possible for me to access the file? I don't know why this happened.

    You open a file with Pages ' 09 Pages 5.x.

    You need to right-click on the file and open it with Pages 5.x (the one with the orange document icon).

    Peter

  • I'm unable to access the files on my external hard drive

    I have an external hard drive and can't read the files. The device appears on my PC, but no file shows when I go to the device and equipment. My PC is not recover this unit and only not recognize it as a USB device. I can see this under the folder hardware and devices, but there is no entry. Is there a way to access the files or retrieve files? The material of the driver is up-to-date.

    Hello

    Try to connect the external hard drive on another computer / USB and check.

    If you are able to access the files on the other computer, and then try to update the drivers for the chipset of your computer.

    You can visit the website of the manufacturer of the computer to get the chipset drivers.

    Thank you.

  • To access the files with the appropriate authorization

    Hello everyone. I tried to fix something that I screwed up a long time ago. Here's how it started. I have this drive external DRIVE that I keep my photo archive to. I was going to somewhere that I don't remember now, so I wanted to keep away from curious eyes. So I right click on the main folder and 'share with... '. Nobody ". I applied it to all subfolders and files, etc. So of course when I was there, I couldn't access my files either. He says I don't have permission to access. It's understandable. Then, some time later, my computer crashed and I had to install win7 all over again. That's when I realized that I blocked my own photos in a way. I couldn't access the files without changing the status of property. I've changed the status to everyone instead of specific individuals. I could access the files. OK boring part is almost finished.

    Now I can access the files. But under certain conditions. I have recently (4 hours ago) installed win7. I still get the same error always which is the following:
    [IMG] http://i427.photobucket.com/albums/pp357/DarkTemplar21/5.jpg [line]
    This is how I see the files/folders
    [IMG] http://i427.photobucket.com/albums/pp357/DarkTemplar21/1.jpg [line]
    I have apart from the main folder through Group residential read/write first, then I have to go for the subfolders, select all the files and share them again
    [IMG] http://i427.photobucket.com/albums/pp357/DarkTemplar21/2.jpg [line]
    then I result
    [IMG] http://i427.photobucket.com/albums/pp357/DarkTemplar21/3.jpg [line]
    When I check the security options in detail, I see a number of unknown accounts as owners.
    [IMG] http://i427.photobucket.com/albums/pp357/DarkTemplar21/4.jpg [line]
    I always delete but they keep their appearance or it seems that way.
    So I solved my problem by going to these steps. But I want also gives access to my files on other computers. I don't want to change owner every time I want to take a look at my photos somewhere else than on my own computer. Is there a way to solve this problem once and for all? or do I have to do this in a routine. It's very tiring to go all folders and share and delete owners etc.
    Thanks in advance for your help. I promise you that I won't go anywhere near file sharing again.

    OK, I got it, I changed the owner again at all for the entire disk. now I can access all the files. It really scared me for a minute there. Thank you once again.

  • Not able to access the files of Windows 8 on a Windows XP-based computer on a network"requires a user name and password"

    I have a similar problem since an update of MS on a computer laptop XP and laptop W8.  Using a LAN cable, I can access the files from the XP laptop in the laptop W8 but suddenly not the other way around;  requiring a stranger Enter username and password .  MS is gradually becoming more and more hostile user!

    Separated from http://answers.microsoft.com/en-us/windows/forum/windows_8-networking/how-can-i-disable-the-enter-network-password/5d9e2967-e946-4eb8-9173-e99de93af049

    Check this link and make sure that the settings are carried out in accordance with article.

    http://Windows.Microsoft.com/en-in/Windows/sharing-files-printers-help#sharing-files-and-printers=Windows-XP&V1H=win8tab1&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    Watch the video of thehttp://windows.microsoft.com/en-in/windows/networking-home-computers-running-different-windows#networking-home-computers-running-different-windows=windows-7 link

    Thanks Peinium Dicki ,
    I had to renew the password of guest on the XP computer account then the LAN has worked well.
  • Server to the House Acer Aspire H341 guard give up the connection and I can't access the files.

    The server worked flawlessly for 2 years.  Now it the intermittent connection.  When I try to back up a computer on the server it the backup starts but stalls and I get an error message saying that there was a problem with the software of server connection.  I reinstalled the software of connection to server with no improvement.  Restart the server generally means I can access the files again, but it will still drop the connection.  The same problem occurs on all five connected computers.  All running Windows 7 family 64 or Windows XP.  I did have a backup successful PC in two months. I am desperate for help.  Had the server in the computer store and they could not in the absence of it.  They had to install the software of my original disks, so I wonder if it's an automatic update (including the computer store would not, by returning to the original disks).  Everyone suffers from the same issue?

    Unfortunately he wa a sign of a failure of network card.  As it was an integral part of the unit, replacement was more expensive than the original server.  So I bought a new server.  He has managed to move the hard drives on the new server.

  • Trying to access the files on an external drive. It is denied. Some files are accessable. / problem solved. But please help me learn.

    Hello.

    I use XP Home 32-bit Edition. My a-external hard drive is a Western Digital My Book Essential 1.5 Tb USB2 HARD drive: model number: WDBAAF0015HBK-00.

    I can't access all files on the external hard drive. Currently, I mounted it on a folder. I have some files tif on the external hard drive and wanted to access my photos.

    The message that I had to right click and select open with was "access to C:\(Folder tree) denied." I tried my programs and the Windows Picture and Fax Viewer of image editing. Nothing works.

    When I right click on the images of problem the only options I have are: open, print, edit, Preview, open with, send to. None of these work.

    Some files are not accessible, and others. Unaccessable files do not have a preview image in the window pane (on the lower left side when I'm in the folder).

    This can happen if I didn't 'delete safetly' external hard drive or there was a Brown out? Some of the tif are too long file extensions? Shouldn't windows warn me too long file extensions?

    I consulted the havn't the reader for a while.

    I can not drag and drop the files to my desktop. I can't copy, cut, delete or move the files. When I click on a file, and then click file - properties: nothing shows up and he says: size: 0 bytes, size on disk: 0 bytes. But when I click on the file in the folder, it says that it is 23.3 MB. I can move the folder on my desktop.

    When I select all the files and click on file - properties: it is said attributes: read-only and hidden. They are green in box, I have not did those and it does not work. I clicked on Advanced Options, again I had unstapled the ReadOnly and hidden, then I unchecked all 4 options because they were greenboxed too. It's green boxes, not the check marks in both situations. What are the green boxes?

    ______________________________________________________

    Fixed a problem. I dragged and deposited the files on my desktop and I can access it. At this point, I just thought, since I had problems with the music files (mp3 or wav) is too long and is not be able to access or remove them, but I can delete the folders to get rid of them.

    So my question is why am I unable to access the files? This is a limitation of my external hard drive? Can I test or repair? What is this kind of disk with this version of Windows? What is a format? It's NTFS. Computer management indicates that the external drive is healthy.

    It seems that some files are not named as long as others and I could access those. Is there a limit on character/attribution of Tif or all types of files? If so, is it the same? Pourrait - linked to the way in which the external (or internal drive?) is setup in the policies tab? Are each disk different? They seem to be a little more limited than the internal hard drives, but I'm not sure if this is a limitation of the usb2.

    Does anyone know if there is a program or a way to know how many letters or numbers have been used? Microsoft Word and Works a number of words, but Works 9 (I have that) doesn't have a number of letter.

    Contradict you yourself.  At one point, you said:

    > I can not drag and drop the files to my desktop. I can't copy, cut, delete or move the files.
    and then you say:
    > A problem fixed. I dragged and deposited the files on my desktop and I can access it.

    This side, the general approach to access in this case is "Ownership" of these files.
    "How appropriate a file or a folder in Windows XP"
      <>http://support.Microsoft.com/kb/308421 >

    This probably occurred because the files were created on different computers by users with different Secure ID (SID) or you have reinstalled Windows and files were protected to some extent.  Since you are using XP Home Edition, the only way to see the security settings is to start your computer using safe mode and log in as an administrator.  This will give you access to the 'Security' tab when you right-click on a file and select 'Properties' (as described in the article above).  Apart from connecting with Safe Mode, you can use 'Cacls' command from a command prompt window (start-> Run-> "cmd") to view or change permissions on files

    "Cacls": <> http://technet.microsoft.com/en-us/library/bb490872.aspx >

    HTH,
    JW

  • I can't access the files under a specific user name, no password

    original title: access files

    Received the infamous "blue screen" error  Installed new hard drive and Windows XP Pro.  Installed old drive "blue screen" in a "pregnant" so I could access the files.  Only problem is that I can't access the files under a specific user name, no password.  All of the suggestions.

    In a situation like yours, you need to "Take Ownership" files that you can access on your old disk:

    "How appropriate a file or a folder in Windows XP"
      <>http://support.Microsoft.com/kb/308421 >

    HTH,
    JW

  • 0xC00D11D2: cannot access the file

    This file is not open song and show the 0xC00D11D2 message: can not access the file

    Hello

    · What version of Windows Media Player, you are working?

    · Were there any changes made on the computer before the show?

    You can check the link: can not access the file: http://www.microsoft.com/windows/windowsmedia/player/webhelp/default.aspx?contextid=71&id=C00D11D2&mpver=11.0.6001.7004&originalid=80070005

  • You want to connect a laptop to my desktop Win XP Professional. I can do it with a phone cable? I don't want email on the remote computer, I just want to do graphics on but to access the files on the desktop.

    I need to know exactly what cords I need to connect two computers? I don't want to send on the laptop. It will be my office of graphic work needs to access the files on the desktop.

    Hello

    You can try to do this with a standard network configuration.

    For more information, see the links:

    Description of the Windows XP Network Setup Wizard

    http://support.Microsoft.com/kb/308522

    Install a wired network card

    http://Windows.Microsoft.com/en-us/Windows-XP/help/networking/install-wired-network-adapter

    Hope this information is useful.

  • I want to save my outlook.pst file but get the following error message:-impossible to copy outlook: the process cannot access the file because another process has locked a portion of the file.

    I want to save my outlook.pst file but get the following error message:-impossible to copy outlook: the process cannot access the file because another process has locked a portion of the file. How can I unlock it please?

    You have Outlook open when you save? You need to close.

    Hope this helps

    Post back if necessary

    ___________________________________________________________

    If this post can help solve your problem, please click the 'bookmark' or 'Yes' to this message button. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Problem with several user to access the files on the same PC in a peer-to-peer network

    I have 9 PC running a mix of Windows XP Pro (32 bit) and Windows 7 Pro OS on a peer-to-peer network.

    These 9 PC are in the same workgroup that they need to access the same file on a computer acting as a file server, under Windows XP Pro.

    There were once only 5 user accesses files on the PC for editing and other purposes. But recently we have increase the user accesses files on the PC at 7 and there are times when the 6th user is unable to access the files until 1 the user has closed the file that he became.

    Is it possible to increase the number of users able to access the file?

    Hello

    The upgrade of the server or any other computer that keeps the number of connections to Win 7 Pro can bring some relief (Win 7 pro will support more connections).

    However, if it is a business, it is time to start investigating Windows SBS.

    http://www.Microsoft.com/SBS/en/us/default.aspx

  • How to access the files after you put the hard drive in the external case

    I dropped my laptop and it is split.  I bought an external case for hard drive, only to discover, when I try to access the files, I'm not authourized to do.  I know the password, how do I access files, without having to pay someone a large sum of money, "with no warranty.  When I try to access it using the security feature to take possession of the files, they always come to the top an unauthorized.

    Hi martinez_gerald,

    In addition to the suggestion of Chafflube, you can consult the following KB articles and check if it helps.

    1. What is the exact error message you get when you try to access the files?

    You can read the following article and check if it helps:

    Error access is denied"when you try to open a folder

    http://support.Microsoft.com/kb/810881

    Also read the following article:

    How to capture a file or a folder in Windows XP

    http://support.Microsoft.com/kb/308421

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for

  • Invalid address in the cache

    At any given time on a boring hotel wifi it my attempt to go to http://news.bbc.co.uk intercepted and replaced it with https:/news.bbc.co.uk , as he in fact returned the wifi login page.Unfortunately now that https appears stuck in my profile of sync

  • C50-A-19 t satellite fell - warranty does cover this anomaly?

    Hi guys,. I need your advice. I bought my computer laptop old month and today, my girlfriend dropped acetone on it. Fortunately, still works but the coverage and some keys are damaged and so new it is painful to see it this way. Anyone knows if the t

  • All of the programs do not start

    Computer is only a few months old a day all works well, that during the night that all programs fail to start showing error the application has failed to start because its side by side configuration is missing see the log for more information. Don't

  • Re-install windows 7 on refurbished Dell desktop computer

    Hello I bought a Dell repairman authorized Microsoft Office redecorated. Windows 7 pro came pre-installed and no discs were included. I need to re - install windows 7 on the desktop and use windows 7 pro refurb pcs key on the sticker. What is the rig

  • Special characters in JSon of Webservice

    My application from a json object a webservice. After the analysis of the json object I find characters of strings you have coded something because, rather than get the string what frio! Aguero, paraguas, nunez y Belén. I get the Quebec is Warf chain