Difference between revisions of "Talk:MATLAB"

From PrattWiki
Jump to navigation Jump to search
 
Line 15: Line 15:
 
** That's not quite enough information to go on -- generally, though, it means that there are parentheses in the wrong place or some similar syntax error. [[User:DukeEgr93|DukeEgr93]] 20:58, 30 October 2011 (EDT)
 
** That's not quite enough information to go on -- generally, though, it means that there are parentheses in the wrong place or some similar syntax error. [[User:DukeEgr93|DukeEgr93]] 20:58, 30 October 2011 (EDT)
  
*{{Q}} I am trying to play a tone using the "sound" command in Matlab. I cannot hear any sound when connecting remotely using an SSH connection on a Mac. I attempted to use a Matlab sample file to ensure it was not a problem with my signal. As suggested in the "sound" help information, tested the following code:
+
* I am trying to play a tone using the "sound" command in Matlab. I cannot hear any sound when connecting remotely using an SSH connection on a Mac. ((snip)). [[User:Mrt19|Mrt19]] 22:34, 24 January 2013 (EST)
 
+
** You can only get MATLAB sounds to play remotely is you start MATLAB using a [[VCL]]. Connecting via a terminal will not do it because the program is running on the remote machine; when you use a VCL, the program is actually running on your machine. [[User:DukeEgr93|DukeEgr93]] ([[User talk:DukeEgr93|talk]]) 18:32, 25 August 2014 (EDT)
<source lang="matlab">
 
load handel
 
sound(y,Fs)
 
</source>
 
 
 
No sound was heard. In my unix terminal the following posted when I entered the "sound" command in Matlab.
 
 
 
<source lang="text">
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
 
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
 
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
 
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
 
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
 
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
 
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
 
ALSA lib conf.c:4664:(snd_config_expand) Evaluate error: Permission denied
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM dmix
 
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
 
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_card_driver returned error: Permission denied
 
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
 
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_concat returned error: Permission denied
 
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
 
ALSA lib conf.c:4185:(_snd_config_evaluate) function snd_func_refer returned error: Permission denied
 
ALSA lib conf.c:4664:(snd_config_expand) Evaluate error: Permission denied
 
ALSA lib pcm.c:2209:(snd_pcm_open_noupdate) Unknown PCM dmix
 
ALSA lib pcm.c:7246:(snd_pcm_recover) underrun occured
 
</source>
 
 
 
Please let me know if there is a solution to this, or if anyone else is having this issue as well. Sorry about the long post feel free to delete the unix messages when the question has been answered. [[User:Mrt19|Mrt19]] 22:34, 24 January 2013 (EST)
 

Latest revision as of 22:32, 25 August 2014

MATLAB

  • To what extent have you used or found useful MATLAB's softScope? —Preceding unsigned comment added by Kcoonley (talkcontribs) Jun 26, 2008
    • softscope can be pretty handy when you want to see use a data acquisition system as an oscilloscope. The DAQ systems in EGR 103, for example, can have 8 differential or 16 single-ended traces going simultaneously, though on some of the slower machines, there's definite jitter in the readings. Also, it is complicated to get softscope running while simultaneously trying to either set voltages or store voltage values. It isn't impossible, but the softscope program has to be run on interrupts which means performance degradation. Also, The MathWorks has a softscope help page - I will go ahead and add that to the external links on the main article. DukeEgr93 18:10, 26 June 2008 (UTC)


  • When I open a PuTTY session and invoke Matlab by typing 'matlab &' , I get a msg that reads: X connection to localhost:10.0 broken (explicit kill or server shutdown). How do I remedy this? Sno5 15:21, 3 September 2011 (EDT)
    • That is generally because you have not started the X-Win program. If you are running windows, you need both X-Win and PuTTY to connect. The other reason that may happen is if you have a PuTTy session where you didn't have the "Enable X11 Forwarding" button clicked. DukeEgr93 16:42, 3 September 2011 (EDT)
  • What is the longest number recognized by MATLAB? Rck17 13:24, 19 September 2011 (EDT)
    • Depends on the definition of "longest." All floating point numbers in MATLAB take up 64 bits of binary information so they are all technically the same "length." The largest number MATLAB can handle without being taught a different way to store numbers is realmax which is on the order of 1.7e308 or just under 2^1024. Actually -
      \( \left(\sum_{k=0}^{52}\frac{1}{2^k}\right)\times 2^{1023} \)
      DukeEgr93 15:56, 21 September 2011 (EDT)
  • When I run a line of code that includes the conditionals ~= or <= (and likely others like it) I get an error that says "Unexpected MATLAB operator". How do I fix this? Sno5 21:28, 5 October 2011 (EDT)
    • That's not quite enough information to go on -- generally, though, it means that there are parentheses in the wrong place or some similar syntax error. DukeEgr93 20:58, 30 October 2011 (EDT)
  • I am trying to play a tone using the "sound" command in Matlab. I cannot hear any sound when connecting remotely using an SSH connection on a Mac. ((snip)). Mrt19 22:34, 24 January 2013 (EST)
    • You can only get MATLAB sounds to play remotely is you start MATLAB using a VCL. Connecting via a terminal will not do it because the program is running on the remote machine; when you use a VCL, the program is actually running on your machine. DukeEgr93 (talk) 18:32, 25 August 2014 (EDT)