My problem with matlab script node is related to calling function in matlab. I created an m-file function that takes an imput temperature (from DAQ) and defines a material property. My matlab script node doesn't seem to recognize my function. I have placed the function in the folder the vi is currently located, but it doesn't read it. How do I get matlab script node to read the functions I create in matlab? Add the directory to matlab path, or call the .m file with it full name ( D:\..... \myfile.m) Let me clarify, I have pasted my matlab code into the matlab scrip node. In this code, I have called a subfunction that I have created. Example k(n)=k_c(T(n)) where k_c is a subfunction I have created. How do I get my code in the node to sucessfully read the subfunction k_c? As indicated, you need to add the directory where the .m file containing the function resides to the list of paths that are read in. This is your startup.m file. The other option is to do a "cd" command prior to calling your function to change to the directory where the .m file containing the function resides. Thanks for reiterating the information. My matlab script node is working properly. I had never used the "cd" command in matlab. I always set the working directory when I open the program, and put all the m files into t...

Hi! I have recently installed Matlab 7.0. I have save my simulation results in .MAT file. However, these MAT files can't be opened using Matlab 6.5.1. I encountered problem as follows: ??? Error using ==> load Unable to read MAT file D:\MATLAB7\work\results.mat File may be corrupt. How can I solve this problem? Thanks. Linda Please see here: <http://tx.technion.ac.il/~perryb/matlab7/mat7.pdf> In short, save again as: The new features and enhancements are described in the "Release notes" of Matlab. A new feature that causes incompatibility with previous versions of Matlab is the new encoding of MAT files. Matlab release 14 writes character and figure data to MAT-files using Unicode encoding by default. Unicode encoded MAT-files are not readable by earlier versions of Matlab. If you intend to load your MAT-files created with Matlab release 14, you must override the Unicode default during the save. You can override the default encoding by using the -v6 switch with save and hgsave: save filename -v6 hgsave filename -v6 Hope it helps Linda wrote: > > > Hi! > > I have recently installed Matlab 7.0. > I have save my simulation results in .MAT file. > However, these MAT files can't be opened using Matlab 6.5.1. > > I encountered problem as follows: > > ??? Error using ==> load > Unable to read MAT file D:\MATLAB7\work\results.mat > > File ma...

Hi, does anyone know why Fortran-mex files can't be compiled on matlab V5.3 and run on matlab V6? For example: if I compile the example-program (shipped with matlab) timestwo.f on matlab version 5.3 (R11) and try to run it on matlab version 6+ (R12 or R13), I get the error message: "Unable to load mex file: E:\timestwo.dll. The specified module could not be found. ??? Invalid MEX-file" Likewise if I compile it on matlab version 6.1 (R12), I get a similar error message if run on matlab version 5.3 (R11). However, if I run it on matlab version 6.5 it works OK. If I try the same experiment with the corresponding example file written in C, timestwo.c, I get no such problems. Why is that? Per A. Hi Per, usually MEX-files need to be compiled with the MATLAB version you want it later to run with. The reason is, that the code links against the current dynamic libraries (DLLs), which may change from version to version. You may have luck that it works (see your example of timestwo.f), but you should never rely on this. Titus "Per A. Brodtkorb" <Per.Brodtkorb@ffi.no> wrote in message news:eecb303.-1@webx.raydaftYaTP... > Hi, > > does anyone know why Fortran-mex files can't be compiled on matlab > V5.3 and run on matlab V6? > > For example: if I compile the example-program (shipped with matlab) > timestwo.f > on matlab version 5.3 (R11) and try to run > it on matlab version 6+ (R12 or R13), I ...

i need to know how we calculate euclideandistance of a bitstream/codeword based on the channel gain of that particular codeword/bitstream subchannel ...

What is the best way to import Excel files, with stock data, into Matlab? I’m using Matlab R2010b (64-bit) I’m trying to import historical prices of stock data. Matlab keeps cutting off the header of each column; it gives me only values. I am thinking that this is a data-type-mixing-issue, or whatever it’s called. I have ‘Dates’ in ColumnA, and ‘MSFT’, ‘PWER’, ‘KO’, and ‘SBUX’, in ColumnB-ColumnE. Basically, if I put the Excel file in my Matlab folder and double-click the file, I see the values in a matrix (no dates and no headers), I hit ‘Next’. Then, I see only one option; one radio button is enabled – ‘Create variable matching preview’. The other two options, ‘Create vectors from each column using column names’ and ‘Create vectors from each row using row names’ – both are greyed out. I’ve seen videos, on YouTube and on the Matlab site, where people import excel data and these options are NOT greyed out. No matter what I do, there options are ALWAYS greyed out. The problem is, when I click ‘Finish’ in my ‘Workspace’ I have a variable named ‘data’ all values in a 575x4 matrix, but I have NO DATES and I have NO HEADERS on the columns. All of this seems to go into another variable, called ‘textdata’; all dates and headers ate in textdata. This is VERY inconvenient. I’m trying to analyze some stock data and I have no headers, so I have no idea which stock is which (I can figure it out, but I think Matlab should do this for me). Also, I have no dates corresponding to ...

Hello All, I'm working with an aplication that use the matlab engine. I made the C++ program and it is working well in my pc with matlab 2007b, but the same very basic program shows an error when I tried to compile it in a pc with matlab R2010b. The error is about the icuuc32.dll. ¿Why is asking this DLL? How can I solve this?. Thanks¡ ...

undefined ...

Hi, My problem: I've a function myHelperFcn.m which needs myData.mat and myImage.jpg at runtime. I can include the needed files with the -a option of the mcc command, like this: mcc -m myFcn.m –a myData.mat -a myImage.jpg But I'm searching for a mechanism like the function pragma (%#function myCallbackFcn) for non m-files, which atomically includes the needed files to the ctf file. thanks, Martin ...

I have a Matlab m-file that reads in my data and successfully displays to the screen an animation of the data. Now, I’m attempting to generate an animation *output file*, so that I can replay this animation in a portable (e.g. .gif ) format on other non-Matlab PCs. At present, the code that I show below *does* generate an “animation” output file (of several MB in size, where one component frame is several kB). However, the problem seems to be that the output “animation” file just contains hundreds of the same frame (which is the final frame of the entire animation), rather than the correct, individual animation frames. I’ve attempted to follow the example code shown in this Matlab Solutions link: How can I create animated GIF images in Matlab? http://www.mathworks.com/support/solutions/en/data/1-48KECO/?solution=1-48KECO and here is a simplification of my code (I omitted much of my correctly-working animation code, and included the full new animation-file-generating code): ------------------------------------------------------- filename = 'myAnimation.gif'; for i=1:Endval % calculate and plot animation to screen % ... set(plot(x,y,'b',x,y,'bo', xtarget, ytarget, 'rx'),'LineWidth',3); drawnow; % new animation-file-generating code frame = getframe(1); im = frame2im(frame); [imind,cm] = rgb2ind(im,256); imwrite(imind,cm,filename,'gif','WriteMode&...

Many of you who post to this newsgroup are also regular contributors to the MATLAB Central File Exchange. Look for your favorite contributors on our File Exchange Author Profile page. You can read their profiles and see pictures: <http://www.mathworks.com/matlabcentral/reports/fileexchange/allProfiles/> In a random drawing, we recently awarded MATLAB jackets to three File Exchange authors with profile pages: Michele Giugliano, Andrey Egin, and Denis Gilbert. You can win a jacket, too. Just submit a new file to the File Exchange or update your author profile by December 2003 for a chance to win one of four MATLAB jackets. See the jacket below: <http://www.mathworks.com/matlabcentral/images/jeff3.jpg> Here are some interesting File Exchange facts: - Since its inception in 2001, visitors have downloaded more than 1.25 million submissions from the File Exchange. - In September 2003 alone, visitors downloaded 80,085 files, an average of 2670 a day! .... what if the prize was a free copy of the next version of Matlab :-) majb Min Poh wrote: ....or an offer for employment... aj "bourassa" <bourassa-m@rmc.ca> wrote in message news:3f9d507d$1@rmcnt03a.rmc.ca... > ... what if the prize was a free copy of the next version of Matlab :-) > > majb > > Min Poh wrote: > ...

I am trying to to some computations and I would like to do it in parallel using parfor or by Opening the matlabpool.. as the current implementations is too slow: result=zeros(25,16000); for i = 1:length(vector1) % length is 25 for j = 1:length(vector2) % length is 16000 temp1 = vector1(i); temp2 = vector2(j); t1 = load(matfiles1(temp1).name) %load image1 from matfile1 t2 = load(matfiles2(temp2).name) % load image2 from matfile2 result(i,j)=t1.*t2 end end It work fine but I would really like to know if there is a way to speed thing up ... Thanks a lot in advance! ...

I was using matlab central's tool called exportToZip() to package an m file and its dependencies m files into one zip file. The problem is that this tool does not package a .fig file as well, that corresponds to an .m file (assuming such one exist, example for GUIDE application). So, in my Matlab script, I detect this, and then tried to add the .fig file to the zip file that was created. But after looking at the zip() command, it does not seem to support adding a file to a zip file? Or Am I missing something? I am using 2010a on windows. How else would one add a file to a zip file using Matlab? I can try using the system() command, but windows 7 does not seem to have a zip command at the DOS level. thanks --Nasser On 2/15/2012 12:11 AM, Nasser M. Abbasi wrote: > I was using matlab central's tool called exportToZip() to > package an m file and its dependencies m files into one zip file. > > The problem is that this tool does not package a .fig file > as well, that corresponds to an .m file (assuming such > one exist, example for GUIDE application). > > So, in my Matlab script, I detect this, and then tried > to add the .fig file to the zip file that was created. > > But after looking at the zip() command, it does not seem > to support adding a file to a zip file? > > Or Am I missing something? > > I am using 2010a on windows. How else would one add a file > to a zip file using Matlab? I c...

Hello everyone, I have a matlab in class exercise due in few days. I am new to matlab and the instructions provided with the assignment is minimal. Can Someone help me with the basic understanding as in how can I map the problem's solution to matlab script ? I am not able to post question here as it is a jpeg file. Please let me know and then we can discuss further. ...

Hello all, I created successfully a mex file. It is linked to an external dll and it worked fine (it returns correctly to matlab a vector). Recently I added an new function inside my c++ file which does not affect the result of the c++ function but is just used to improve some data manipulation. By the way, this function works quite well in a simple c++ file and I have already used many times in other c++ files (no-mex files). After added this function my matlab crashes and returns me this error: MATLAB crash file:C:\DOCUME~1\MILCEMEA~1.VAA\LOCALS~1\Temp\matlab_crash_dump.2996 ------------------------------------------------------------------------ Segmentation violation detected at Wed Jul 28 18:38:04 2010 ------------------------------------------------------------------------ Operating System: Microsoft Windows XP Window System: Version 5.1 (Build 2600: Service Pack 3) Processor ID: x86 Family 6 Model 7 Stepping 10, GenuineIntel Virtual Machine: Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode Default Encoding: windows-1252 Fault Count: 1 Register State: EAX = ffff5df8 EBX = 00c2e01c ECX = ffffffff EDX = e06d7363 ESI = ffff5df4 EDI = 04f169ec EBP = 00c2e028 ESP = 00c2cf40 EIP = 04ec186e FLG = 00010286 Stack Trace: [0] qlDiscountFactors.mexw32:0x04ec186e(0x00c2e158 "x£", 0x00c2e0b8, 0x00c2e1fc, 0) [1] 0x00c2e20c(0x8b00032b, 0x04c483d8, 0x85e85d89,...

Hi all, I'm building a java swing based GUI for my Matlab application. As such, user input is available as text strings, for example "{[0; 0], [3.5 0; 0 2]}" (mean vector and covariance matrix of a 2D Gaussian). The user input will be passed to the compiled matlab method as a MWCellArray. Problem is how do a convert (parse) the above string into a MWCellArray? From its javadoc http://www.mathworks.com/access/helpdesk/help/toolbox/javabuilder/MWArrayAPI/index.html the following method is available: java.lang.String toString() Returns a string representation of this array, but the reverse method is not. Evidently, parsing a string like the one above is a non trivial task and I'm loath to attempt writing one by myself. I would be very thankful if someone can point me to the required parser implementation. Matlab itself is carrying out this task all the time, perhaps it is possible to access Matlab's own parser. Help much appreciated, Ritesh ...

Hello all , I have a .dat file containing binary data.Every line in file has 16 bits but I want to read 40 bits at a time until the end of file. How can I do that? Could you provide me some guidelines? Thank you, Sanjeeb "Sanjeeb palikhel" <int89835@stud.uni-stuttgart.de> wrote in message <ndgf7r$fjs$1@newscl01ah.mathworks.com>... > Hello all , > > I have a .dat file containing binary data.Every line in file has 16 bits but I want to read 40 bits at a time until the end of file. How can I do that? Could you provide me some guidelines? > > Thank you, > > Sanjeeb content of file is like: 0000000000000000 0000001000001000 0000000000000001 1111110111110111 1111111111111101 0000001000001000 0000000000000011 1111110111110111 1111111111111011 0000001000001000 0000000000000101 1111110111110111 1111111111111000 and i want o format them as: 0000000000000000000000100000100000000000 0000000111111101111101111111111111111101 0000001000001000000000000000001111111101 and so on ...

Hi: I have a tomograph image dataset which are given in .BIN format. Could anyone please tell me how could I get the image from this .BIN file in Matlab? Also: if I make a .BIN file by writin a= [ 1 2 3 4 5 6 7] and write the program like this fid= fopen('a.bin'); B = fread(fid, 'uint8'); then I am getting the output as B= [ 49 32 50 32 52 32 53 32 54 32 55] Would you please tell me how could I get B= [1 2 3 4 5 6 7]? Thanks in Advance Abir ...

Hi Everyone, I would like to stream a wave file in MATLAB while being written into it using a different program at the same time. So, the read and write into the wave file should happen simultaneously and should be done by different programs. For example, the writing to the wave file is done by a c++ program and the reading as a stream should be done in MATLAB. I have the program to write into the wave file and it flushes out the wave file for other programs to use it while writing into it. can anyone help me out with streaming this wave file into MATLAB. Thanking you in advance, -Anil Palaparthi. can anyone please help me out on this. I would like to stream a wave file in MATLAB while being written into it using a different program at the same time. So, the read and write into the wave file should happen simultaneously and should be done by different programs. For example, the writing to the wave file is done by a c++ program and the reading as a stream should be done in MATLAB. I have the program to write into the wave file and it flushes out the wave file for other programs to use it while writing into it. can anyone help me out with streaming this wave file into MATLAB. > Thanking you in advance, > -Anil Palaparthi. ...

Hi, I know matlab "pcode " function can encrypt *.m file. Does anyone know how to encrypt *.fig files (created with matlab GUIDE tool)? thanks. jutao ...

Hello I have gone through google search, other forums and similar message posted here also. I have not got really a way to convert f90 file to matlab file. Its really a big file. Can anyone please help me? Thanks. I just did it today, on a 300 line file, by hand. If you know Matlab, Fortran isn't that much different I don't think. Just copy and paste, do some rearranging and relabeling, and you're done. Really, I have no Fortran training at all and I figured it out in less than an hour. I did have to use the online Fortran reference at IBM a couple of times to find out the syntax of the IF statements, DO loops, etc. It still wasn't that bad. "Sneha " <smithpamola@yahoo.com> wrote in message news:g3s1et$g8e$1@fred.mathworks.com... > Hello > > I have gone through google search, other forums and similar > message posted here also. I have not got really a way to > convert f90 file to matlab file. Its really a big file. > Can anyone please help me? As an alternative to converting over the file, you may be able to write a wrapper to make this into a MEX-file: http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/bp_kqh7.html The third and fifth items could be useful for you. -- Steve Lord slord@mathworks.com "Sneha " <smithpamola@yahoo.com> wrote in message <g3s1et$g8e$1@fred.mathworks.com>... > Hello > > I have gone through google search, other forums and simi...

Hi , I have installed MATLAB 7, now if I want to install 6.5 then how to change the version of MATLAB files which are made in version 7, as some files of newer version may not work in older version? "rajesh " <rajesh.shaw@gmail.com> wrote in message news:ff9e6t$26v$1@fred.mathworks.com... > Hi , > I have installed MATLAB 7, now if I want to install 6.5 > then how to change the version of MATLAB files which are > made in version 7, as some files of newer version may not > work in older version? There is NO version number for your m files when you create them? they are just plain text file. But If you create an .m file which runs ok under version 7, and you want this file to run ok under earlier versions (assuming it does not), then you need to make the necessary changes in your m file to make it run under earlier versions (this is sometimes called backporting). But if your m file calls function(s) that are part of Matlab and those functions only exist in version 7 and not in the erarlier version, then you might be out of luck there. I am not sure why you want to do this. The common practice is to go the other way. Any reason why, if you have version 7 you want to use version 6.5? may be if you give the reason it would help to give you a better advice. Nasser On Oct 18, 10:13 pm, "Nasser Abbasi" <n...@12000.org> wrote: > "rajesh " <rajesh.s...@gmail.com> wrote in message > > ne...

Dear all, I am using matlab R2010b, 32bit version to 1) query a device and 2)store those results to hard disk. That device, actually is a measurement devices, every one second "feeds" matlab with 256kbytes of data (32.000 number of double precision). I am appending those measurements to a file and for reducing the extra burden I write those numbers fwrite(fileID, DataToWriteToFile, 'float32') as float32. After few days the size of the file increases in size (i.e 20Gb after 3 days of non stop getting n storing measurements into a file) and it looks like that the matlab is slowing down. By using tic, toc in my code I have found that this come from the writing part (fwrite). I was wondering then if this might be the case as the operating system is 32bit and thus addressing more of a few gigabytes has to start doing "weird" things (like keeping tracks of pointers around for accessing the extra space). Do you know if there are already mentioned such limitations in literature concerning file limitations in matlab? I would like to thank you in advance for your reply B.R Alex ...

Hi, Is there any command line to print text file through Matlab? Thanks C. Cinthia Chen wrote: > > > Hi, > Is there any command line to print text file through Matlab? > Thanks > C. Cinthia, I have a simple function allowing to print through Microsoft Word. If you are interested, send me a mail and I will reply with the function attached. Pierre On Thursday, November 4, 2004 at 7:50:43 PM UTC-6, Cinthia Chen wrote: > Hi, > Is there any command line to print text file through Matlab? > Thanks > C. printf('cos(%g) = %.11g\n',0.0,cos(0.0)); <brystler@gmail.com> wrote in message news:4b9f71b9-2498-4621-a6ea-cd743ba6217d@googlegroups.com... > On Thursday, November 4, 2004 at 7:50:43 PM UTC-6, Cinthia Chen wrote: >> Hi, >> Is there any command line to print text file through Matlab? >> Thanks >> C. First of all, if a thread is more than ten years old, there probably isn't a need to resurrect it by posting something new in it. If you have the same question, it's okay to post a new thread with the information relevant to your situation or needs (and link back to the old one if necessary or useful.) Newsgroups don't have a limit on the number of threads they can contain. Secondly: > printf('cos(%g) = %.11g\n',0.0,cos(0.0)); there is no function named printf in MATLAB. There are SPRINTF, for printing to strings, and FPRINTF, for printing to files...

hello...i m using MATLAB 2010a from last 2 weeks & there was no problem in saving the files in Matlab.but today whien i started saving my files in matlab they jst didn't save. There was no error message.Simply the files stopped from saving.Kindly guide me through this. "Megha Aggarwal" wrote in message <jk6ljo$44i$1@newscl01ah.mathworks.com>... > hello...i m using MATLAB 2010a from last 2 weeks & there was no problem in saving the files in Matlab.but today whien i started saving my files in matlab they jst didn't save. There was no error message.Simply the files stopped from saving.Kindly guide me through this. Did you by any chance overload the SAVE command? Put which save ... right before the save command takes place to make sure you are still using the builtin function. Bruno ...

Undocumented, unsupported and hidden features in Matlab

... 23°21′N 90°42.5′E / 23.35°N 90.7083°E / 23.35; 90.7083 Coordinates : 23°21′N 90°42.5′E / 23.35°N 90.7083°E / 23.35; 90.7083 Matlab ...

The MathWorks - Developers of MATLAB, Simulink and Stateflow. Offers products for data analysis, visualization, application development, simulation, ...

Read reviews, compare customer ratings, see screenshots, and learn more about MATLAB Mobile. Download MATLAB Mobile and enjoy it on your iPhone, ...

In the aftermath of an earthquake, every second counts for disaster victims. Imagine a system that can locate people quickly and help first responders ...

What prompted the development of MATLAB?

If you are trying to compile Matlab into .Net framework, you might encounter this message, even though you have the .Net framework installed ...

Matlab, one of the world's most widely used products for algorithmic development, has long occupied its own niche far removed from EDA and hardware ...

dmtcp - DMTCP: Distributed MultiThreaded CheckPointing matlab -nodisplay -r "parpool('local',4); parfor i=1:10, pause(1); fprintf('%i ',i); end; ...

... so he focused on studying the methodology and the tools available for analyzing 433MHz RF transmission. He describes the process of using MATLAB ...

Resources last updated: 3/30/2016 2:30:13 PM