https://kr.mathworks.com/matlabcentral/newsreader/most_recent_feed
MATLAB Central Newsreader Recent Posts
Most Recent Posts
enus
©19942017 by MathWorks, Inc.
webmaster@mathworks.com
MATLAB Central Newsreader
http://blogs.law.harvard.edu/tech/rss
60
MathWorks
https://kr.mathworks.com/images/membrane_icon.gif

Thu, 17 Aug 2017 15:23:09 +0000
What does imagesc do?
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349342#955903
Carl Conti
What does a pixel highlighted as a certain color mean in imagesc.

Thu, 17 Aug 2017 13:15:14 +0000
Re: Placing a Popup Menu in a cell inside a uitable
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/283212#955902
Anastasia Kazyuk
"Gonçalo" wrote in message <htm00k$d3q$1@fred.mathworks.com>...<br>
> Hello,<br>
> <br>
> I was wondering if it's possible to place a popup menu inside a cell in a uitable.<br>
> <br>
> The objective is to have a popup menu that allows (or not) the user to input data in the following columns.<br>
> <br>
> For example, if the first columns is the popup menu and it has the options of choosing between a object and a color:<br>
> <br>
>  Object/Color  If object allow to insert object name here  If color allow to insert color name here<br>
> <br>
> note: the "  " represent columns.<br>
> <br>
> This is a very simple example just to put in context why i need a popup menu.<br>
> <br>
> Any suggestions for alternative method to do so are greatly appreciated.<br>
> <br>
> <br>
> Thanks in advance!<br>
<br>
Hello!<br>
<br>
May be this)<br>
<br>
<a href="http://nl.mathworks.com/help/matlab/ref/tableappdesignerproperties.html">http://nl.mathworks.com/help/matlab/ref/tableappdesignerproperties.html</a>

Thu, 17 Aug 2017 12:27:18 +0000
3D view of atoms and Lattice (or perspective View)
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349341#955901
mostafa
<br>
I'd like to show substrate and layers that growth on it in the 3D view. For my master thesis. <br>
For example, I have a 3D Matrix that shows where is each atom. And want to show a 3D view (or perspective View) of it (For example as attached pictures).<br>
<br>
can any one help me? <br>
<br>
My English does not good, Excuse me for any unintelligible sentences.<br>
<br>
Best regards<br>
<br>
<br>
pictures:<br>
https://image.ibb.co/hV1Duv/atoms_3_D_view_on_substrate_1.jpg<br>
https://image.ibb.co/kBH8SF/atoms_3_D_view_on_substrate_2.jpg

Thu, 17 Aug 2017 12:24:10 +0000
Re: Plotting lattices as 3D view
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/20667#955900
mostafa
"us" wrote in message <90ccjt$6r8$1@nnrp1.deja.com>...<br>
> there's a variety of possibilities to visualize <lattices> (in a rather<br>
> broad sense).<br>
> you may want to look at these (just to name a few) prepackaged<br>
> functions:<br>
> <br>
> help plot3<br>
> help bar3<br>
> help mesh<br>
> help pcolor<br>
> help patch<br>
> help surf<br>
> help imagesc<br>
> <br>
> it really depends on <what> exactly you want to demonstrate your<br>
> students.<br>
> <br>
> hth,<br>
> us<br>
> <br>
> In article <3A298763.A4BD84F7@stanford.edu>,<br>
> Brad Osgood <osgood@stanford.edu> wrote:<br>
> > What's an easy way to plot lattices? For some class notes I'd like to<br>
> > show plots of a 2D lattice and its reciprocal lattice.<br>
> ><br>
> > To generate these, start wih the integer lattice Z^2 and an invertible<br>
> > 2x2 matrix A. Then if the lattice L is A(Z^2) its reciprocal lattice<br>
> is<br>
> > A^{t}(Z^2). Easy enough, but how can I get some pictures?<br>
> ><br>
> > Thanks for any suggestions.<br>
> <br>
> <br>
> Sent via Deja.com <a href="http://www.deja.com/">http://www.deja.com/</a><br>
> Before you buy.<br>
<br>
<br>
Hi, Dear Jordan Rosenthal<br>
<br>
I Saw your comment in MATLAB site for “Plotting lattices”<br>
<br>
I like to show substrate and layers that growth on it in the 3D view. For my master thesis. <br>
For example, I have a 3D Matrix that shows where is each atom. And want to show a 3D view of it (For example as attach pictures).<br>
<br>
Can your toolbox do this or similar thing?<br>
Can I ask you to get your toolbox? <br>
<br>
<br>
My English does not good, Excuse me for any unintelligible sentences.<br>
<br>
Best regards<br>
<br>
<br>
pictures:<br>
https://image.ibb.co/hV1Duv/atoms_3_D_view_on_substrate_1.jpg<br>
https://image.ibb.co/kBH8SF/atoms_3_D_view_on_substrate_2.jpg

Thu, 17 Aug 2017 12:03:13 +0000
App Designer compile app with a .NET assembly
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349340#955899
istbob
I am trying to compile (in Matlab 2017a) an App which uses a .NET assembly<br>
NET.addAssembly('LJUDDotNet'); %Labjack IO<br>
<br>
The compiled version does not work since the assembly is not found. <br>
I tried using a wrapper:<br>
<br>
wrapper.m:<br>
NET.addAssembly('LJUDDotNet');<br>
run('myApp.mlapp');<br>
<br>
with the same result.<br>
<br>
Any help is highly appreciated!<br>
<br>
Thanks!

Thu, 17 Aug 2017 10:46:09 +0000
Re: Perron eigenvector
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/282898#955897
chintu gurbani
"d" wrote in message <htbq5q$3ka$1@fred.mathworks.com>...<br>
> hi, <br>
> Is there's a matlab function that calculates the Perron vector of a matrix ?<br>
> (the eigenvector that corresponds to the "Perron root" or the "Perron–Frobenius eigenvalue") ? <br>
> <br>
> thank you, <br>
> D<br>
I have designed an estimator that can give perron vector of a matrix. gama represent the perron vector. D_matrix generates a row stochastic matrix, the function code of which is mentioned below. <br>
<br>
clc<br>
clear all <br>
<br>
n=4;<br>
I=eye(n,n);<br>
gama(:,:,1)=I;<br>
P(:,:,1)=D_Matrix( n)<br>
for i=1:2<br>
P(:,:,i+1)=D_Matrix( n)*P(:,:,i);<br>
for j=1:20<br>
gama(:,:,j+1)=P(:,:,i+1)*gama(:,:,j);<br>
end<br>
<br>
<br>
end<br>
[RV1, EV1, LV1]=eig(P(:,:,1));<br>
[RV, EV, LV]=eig(P(:,:,i+1));<br>
<br>
function [ D ] = D_Matrix( n)<br>
for i=1:n<br>
for j=1:n<br>
D(i,j)=floor(n*rand);<br>
end<br>
D(i,:)=D(i,:)/sum(D(i,:));<br>
end<br>
<br>
end<br>
<br>
Reference: Cooperative control with distributed gain adaptation and<br>
connectivity estimation for directed networks‡<br>

Thu, 17 Aug 2017 10:33:46 +0000
Re: Save workspace from function batch job
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349272#955896
Edric M Ellis
"Jeroen M." <j.p.meijler@student.tudelft.nl> writes:<br>
<br>
> I am currently building a model that makes use of the batch function, as the<br>
> model is getting quite extensive and I want to run it on a highperformance<br>
> cluster. <br>
><br>
> For this I am using the following code:<br>
><br>
> Load_workspace;<br>
> clust = parcluster('local');<br>
> N=4;<br>
> job = batch(clust, @Do_All, 0, 'Pool', N1);<br>
><br>
> Although this does indeed run, I do not know where to get the output from. The<br>
> output is one of the variables in the workspace, which is updated by the<br>
> function Do_All. Using load(job) doesn't work, as it is no script, and data =<br>
> fetchOutputs(job) results in a 1x0 cell.<br>
<br>
The argument to BATCH that follows the function specifies how many<br>
outputs you wish to request from that function. So, in your case, if<br>
"Do_All" returns 3 outputs, you'd say:<br>
<br>
job = batch(clust, @Do_All, 3, 'Pool', N1);<br>
wait(job); fetchOutputs(job)<br>
<br>
Cheers,<br>
Edric.

Thu, 17 Aug 2017 07:55:12 +0000
Re: extracting audio signal from video
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349339#955898
LinkinRip
Filmore and FFmpeg are also good choices.Particularly, FFMPEG provides for free extraction of audio files from video and does not have limitations on file formats supported as it works with almost all.<a href="http://windowsreport.com/extractaudiofromvideo/">http://windowsreport.com/extractaudiofromvideo/</a> BTW,you can also extract audio from DVD: <a href="http://www.videoconverterfactory.com/tips/dvdaudioripper.html">http://www.videoconverterfactory.com/tips/dvdaudioripper.html</a>

Thu, 17 Aug 2017 06:32:24 +0000
Re: how to addpath for image using GUI interface
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349337#955895
Nasser M. Abbasi
On 8/17/2017 1:24 AM, Muhammad RSMY wrote:<br>
<br>
> one more question please<br>
> <br>
> the image_name='image.png'<br>
> <br>
> when I code it to be input from GUI<br>
> strImage_name=get(handles.Image_name,'string');<br>
> image_name=str2double(strImage_name);<br>
> <br>
> while running GUI I get image_name as NaN<br>
> <br>
<br>
Why are you using str2double(strImage_name)? Since you<br>
read the image name as string. Why you are converting the string<br>
to double? Try without this conversion.<br>
<br>
Check this answer for examples<br>
<br>
https://www.mathworks.com/matlabcentral/answers/43212howtogetthevalueoftheedittextbox<br>
<br>
Nasser

Thu, 17 Aug 2017 06:24:10 +0000
Re: how to addpath for image using GUI interface
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349337#955894
Muhammad RSMY
"Muhammad RSMY" wrote in message <on3b25$t8c$1@newscl01ah.mathworks.com>...<br>
> "Nasser M. Abbasi" wrote in message <on2pe6$1sur$1@gioia.aioe.org>...<br>
> > On 8/16/2017 7:47 PM, Muhammad RSMY wrote:<br>
> > > dear friends<br>
> > > <br>
> > > as being new user for matlab.. I built an interface for my code in which I need to add path for the image in other words the location where those images are<br>
> > > <br>
> > > in my code: addpath('C:\images')<br>
> > > <br>
> > > now I am using interface but don't know how to let the user input the path using interface and <br>
> > >that path should transport to my code and run<br>
> > > <br>
> > > I hope someone help me as soon as possible<br>
> > > <br>
> > > Thanks<br>
> > > <br>
> > <br>
> > You can use uigetdir() to let use select the folder. Once<br>
> > the user selects the folder, and the folder name is now<br>
> > saved in some variable, you can then in the code issue<br>
> > the command<br>
> > <br>
> > addpath(folder_name_selected_by_user);<br>
> > <br>
> > https://www.mathworks.com/help/matlab/ref/uigetdir.html<br>
> > <br>
> > "folder_name = uigetdir displays a modal dialog box showing<br>
> > the folders that are inside the current working directory.<br>
> > This dialog allows you to navigate to a folder and select it"<br>
> <br>
> Thanks dear Nasser Abbasi.. your kind response always appreciated<br>
<br>
Dear Nasser<br>
<br>
one more question please<br>
<br>
the image_name='image.png'<br>
<br>
when I code it to be input from GUI <br>
strImage_name=get(handles.Image_name,'string');<br>
image_name=str2double(strImage_name);<br>
<br>
while running GUI I get image_name as NaN<br>
<br>
can you please help.. thanks so much

Thu, 17 Aug 2017 05:54:13 +0000
Re: how to addpath for image using GUI interface
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349337#955893
Muhammad RSMY
"Nasser M. Abbasi" wrote in message <on2pe6$1sur$1@gioia.aioe.org>...<br>
> On 8/16/2017 7:47 PM, Muhammad RSMY wrote:<br>
> > dear friends<br>
> > <br>
> > as being new user for matlab.. I built an interface for my code in which I need to add path for the image in other words the location where those images are<br>
> > <br>
> > in my code: addpath('C:\images')<br>
> > <br>
> > now I am using interface but don't know how to let the user input the path using interface and <br>
> >that path should transport to my code and run<br>
> > <br>
> > I hope someone help me as soon as possible<br>
> > <br>
> > Thanks<br>
> > <br>
> <br>
> You can use uigetdir() to let use select the folder. Once<br>
> the user selects the folder, and the folder name is now<br>
> saved in some variable, you can then in the code issue<br>
> the command<br>
> <br>
> addpath(folder_name_selected_by_user);<br>
> <br>
> https://www.mathworks.com/help/matlab/ref/uigetdir.html<br>
> <br>
> "folder_name = uigetdir displays a modal dialog box showing<br>
> the folders that are inside the current working directory.<br>
> This dialog allows you to navigate to a folder and select it"<br>
<br>
Thanks dear Nasser Abbasi.. your kind response always appreciated

Thu, 17 Aug 2017 02:02:16 +0000
Raster
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349338#955892
Samuel Silva
I have two neurons (model HH created in NEURON), with the time and voltage files of each one saved and I want to plot the spike raster of them. What is the simplest way to do this?

Thu, 17 Aug 2017 00:53:22 +0000
Re: how to addpath for image using GUI interface
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349337#955891
Nasser M. Abbasi
On 8/16/2017 7:47 PM, Muhammad RSMY wrote:<br>
> dear friends<br>
> <br>
> as being new user for matlab.. I built an interface for my code in which I need to add path for the image in other words the location where those images are<br>
> <br>
> in my code: addpath('C:\images')<br>
> <br>
> now I am using interface but don't know how to let the user input the path using interface and <br>
>that path should transport to my code and run<br>
> <br>
> I hope someone help me as soon as possible<br>
> <br>
> Thanks<br>
> <br>
<br>
You can use uigetdir() to let use select the folder. Once<br>
the user selects the folder, and the folder name is now<br>
saved in some variable, you can then in the code issue<br>
the command<br>
<br>
addpath(folder_name_selected_by_user);<br>
<br>
https://www.mathworks.com/help/matlab/ref/uigetdir.html<br>
<br>
"folder_name = uigetdir displays a modal dialog box showing<br>
the folders that are inside the current working directory.<br>
This dialog allows you to navigate to a folder and select it"

Thu, 17 Aug 2017 00:47:11 +0000
how to addpath for image using GUI interface
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349337#955890
Muhammad RSMY
dear friends<br>
<br>
as being new user for matlab.. I built an interface for my code in which I need to add path for the image in other words the location where those images are<br>
<br>
in my code: addpath('C:\images')<br>
<br>
now I am using interface but don't know how to let the user input the path using interface and that path should transport to my code and run<br>
<br>
I hope someone help me as soon as possible <br>
<br>
Thanks

Wed, 16 Aug 2017 23:49:08 +0000
polyphase sin wave or polyphase DDS
https://kr.mathworks.com/matlabcentral/newsreader/view_thread/349336#955889
s002 wjh
i'm try to generate 400mhz sin wave in hardware, but my wave generator DDS can only go upto 100mhz. I heard i can put 4x in parallel and adjust its phase, then combine each DDS output and create a 400mhz wave (so dds1(0), dds2(0), dds3(0), dds4(0), would be 400mhz sample 1,...4)<br>
<br>
anyone know how do i do that in matlab?<br>
eg. if x=cos(2pi*100e6*n), how do i convert this signal 4 time in parallel, then combine into 400mhz signal?