http://www.mathworks.nl/matlabcentral/answers/questions.atomMATLAB Answers — New Questions2014-10-22T21:43:44Ztag:www.mathworks.nl,2005:Question/1596042014-10-22T04:22:14Z2014-10-22T21:43:44ZCan anyone tell me how to implement these timevarying state space equations in matlab<img src = "/matlabcentral/answers/uploaded_files/19822/Time%20Varying%20Matrices.png">Muhammad/matlabcentral/answers/contributors/5789892-muhammadtag:www.mathworks.nl,2005:Question/1597272014-10-22T19:55:35Z2014-10-22T21:33:48Zeigs function: incorrect eigenvectors<p>I am using eigs to find largest 330 eigenvalues, the eigenvalues converges and found pretty match with eig (full (my matrix)), But the eigen vectors didn't match well, it is showing completely new eigen vector. What is the problem? here is my matrix, please?</p><p>my matrix= sparse
size: 456 x 456</p><p>here is the code:
[V D]=eigs(M4,330,'la');</p><p>for full matrix,</p><p>[V1 D1]=eig(full(M4));</p><p>thanks in advance.</p>Gaffar/matlabcentral/answers/contributors/1466850-gaffartag:www.mathworks.nl,2005:Question/1597382014-10-22T21:33:12Z2014-10-22T21:33:12ZHow to find something that you're not looking for?!<p>Hey everyone!</p><p>So I haven written a couple matlab codes to predict the future values of some time series. Within those codes i need the following command:</p><pre> start=datenum(2011,01,01,0,0,0);
finish=datenum(2011,31,12,23,0,0);
a=find(date==start);
b=find(date==finish);</pre><p>The vector "date" contains dates and I want to find the exact position of the dates that I have assigned to the variables start and finish.
However depending on the data I am using, sometimes there are some gaps within the dates in vector "date". For example vector "date" contains all dates from 01-01-2009 until 12-31-2013 but the dates from 12-28-2011 to 01-05-2012 are missing. Consequently if I ran this code, I would get the index of my start date (assigned to variable a) but the index of my finish date (assigned to variable b) is empty.</p><p>Is there any way to determine the closest match to the date I am looking for? For example in this case I would want matlab to tell me the exact position of the date 12-28-2011 within the vector "date" if it cannot tell me the position the the date "finish".</p><p>I would be grateful for any ideas how to work around this. Restructuring the vector "date" and filling it with the missing dates is no solution for me at the moment...</p><p>Thank you so much!!</p>MC3105/matlabcentral/answers/contributors/5543488-mc3105tag:www.mathworks.nl,2005:Question/1597372014-10-22T21:30:49Z2014-10-22T21:30:49ZHi.... Is my code true?<p>Is my code true?(it is for finding optimization answer,the main problem is in the follow)</p><p>function A=string(s)</p><p>n=12;</p><p>best=0;</p><p>i=n/2;</p><p>j=n/2;</p><p>check=zeros(n,n);</p><p>%empty matrix</p><p>A=zeros(12,12);</p><p>%A(:,:)=[];</p><p>s=[2 1 2 1 1 2 1 1 2 1 2 1 2 1 1 ];</p><p>len=length(s);</p><p>A(i,j)=s(1);</p><p>check(i,j)=1;</p><p>for l=2:len</p><p>y=randperm(4);</p><p>switch y(1)</p><pre> case 1</pre><p>j=j-1;</p><p>case 2</p><p>i=i-1;</p><p>case 3</p><pre> i=i+1;</pre><p>case 4</p><p>j=j+1;</p><p>end</p><p>if check(i,j)==0</p><pre> A(i,j)=s(l);</pre><p>check(i,j)=1;</p><p>switch y(2)</p><p>case 1</p><p>j=j-1;</p><p>case 2</p><pre> i=i-1;</pre><p>case 3</p><p>i=i+1;</p><p>case 4</p><pre> j=j+1;</pre><p>end</p><p>if check(i,j)==0</p><pre> A(i,j)=s(l);</pre><p>check(i,j)=1;</p><p>end
switch y(3)</p><p>case 1</p><p>j=j-1;</p><p>case 2</p><pre> i=i-1;</pre><p>case 3</p><p>i=i+1;</p><p>case 4</p><pre> j=j+1;</pre><p>end</p><p>if check(i,j)==0</p><p>A(i,j)=s(l);</p><p>check(i,j)=1;</p><p>end</p><p>end</p><p>end</p><p>%number of zero</p><p>num1=nnz(s);</p><p>num2=len-num1;</p><p>% andis of zero</p><p>w=find(A==0);</p><p>for z=1:num2</p><p>if w(i+1)==w(i)==2</p><pre> best=best+1;</pre><p>end</p><p>end</p><p>best</p><p>A</p><p>end</p><p>the string includes 0 and 1:</p><p>with 2 conditions:the nodes can be in four directions in a matrix & the edges connect 2 nodes dont cut each other & nodes(0&1) dont put on each other. The value of optimization calculate with couple node 0 and the distance between 2 couple nodes is 1. for example for string s1 =</p><img src = "/matlabcentral/answers/uploaded_files/19876/2.JPG"><p>and its graph is=
red nodes show 1 , black nodes show 0 and blue lines show couple nodes.</p><img src = "/matlabcentral/answers/uploaded_files/19877/3.JPG"><p>in my code I replace 2 instead of zero.I dont understand how to find edge for writing optimization??</p><p>Thanks for all answers...</p>helena/matlabcentral/answers/contributors/5797569-helenatag:www.mathworks.nl,2005:Question/1595712014-10-21T20:19:36Z2014-10-22T21:27:28Zcatching a value while matlab is running<p>I am building a simulation with many functions using OOP(beginner). Sometimes I have some values from different variables that are not desirable but I can not see them while the simulation is running. So I was wondering if there is any way to catch this value while the simulation is running. I believe it could be done inside the functions but there so many that its inefficient and time-consuming to do it. Can <tt>addlisterer</tt> be used for that or any other way? Any suggestions?</p><p>Thanks in advance</p>Dimitrios/matlabcentral/answers/contributors/5124675-dimitriostag:www.mathworks.nl,2005:Question/1595042014-10-21T12:41:34Z2014-10-22T21:25:10ZIs there an easy way to perform a Gamma Test within the Neural Network Toolbox? Or are there other ways to determine significant inputs for neural networks within the toolbox?<p>Hello everyone!</p><p>I am still pretty new to matlab and neural networks but so far I have succeeded in creating a code for a neural network within the neural network toolbox.
Now I want to determine which inputs I want to include in the neural network and which inputs are not significant. I read that it is possible to perform a Gamma Test to determine the best inputs for a neural network.
Is there any possibility or possibly an easy way to perform a Gamma Test within the neural network toolbox or in any other toolboxes? If not, do you know of any other easy ways to determine the best inputs for my neural network within matlab??</p><p>Thank you a lot!!</p>MC3105/matlabcentral/answers/contributors/5543488-mc3105tag:www.mathworks.nl,2005:Question/1597362014-10-22T21:22:15Z2014-10-22T21:22:15ZHow do I perform unbalanced ANOVA ?<p>Hi! I have 3 vectors of data (each vector has a different number of data) and I'd like to perform ANOVA. How do I do it?</p>Simo/matlabcentral/answers/contributors/5085466-simotag:www.mathworks.nl,2005:Question/1597212014-10-22T18:42:32Z2014-10-22T21:10:31ZSo apparently my textbook is out of date<p>I've been working out of DeVries' text on mathematical modeling for biological systems, and am working on the chapter that actually teaches you how to do all of this in Matlab. One of the examples I'm working through concerns the SIR model, and asks you to use the dsolve function to solve an ODE symbolically and for non-explicit solution, as such:</p><p>I = dsolve('DI = -1 + a/(b*S)','S')</p><p>According to the textbook, I should get a nice solved equation out of this (though it doesn't say what it should look like). However, when I actually type it into the terminal, I get</p><p>Warning, it is required that the numerator of the given ODE depends on the highest derivative. Returning NULL.</p><p>Warning, it is required that the numerator of the given ODE depends on the highest derivative. Returning NULL.</p><p>Warning, cannot find an explicit solution</p><p>{�Error using maplemex
Error, (in MTM:-dsolve) invalid input: indices received E, which is not valid
for its 1st argument, t
Error in dsolve (line 13)
r = sym(maplemex(0,'MTM:-dsolve',varargin{:},'returnlist=true'));
Error in matlab2211324625 (line 4)
I = dsolve('DI = -1 + a/(b*S)','S');}</p><p>I'm assuming (as is my professor) that somewhere along the line, Matlab updated their formatting, and now the example equation is set up correctly. Can anyone give me any pointers on how it's <i>supposed</i> to look?</p><p>Thanks!</p>Tessa/matlabcentral/answers/contributors/5806979-tessatag:www.mathworks.nl,2005:Question/1597352014-10-22T21:09:57Z2014-10-22T21:09:57ZHelp with balancing GyroBoy (Lego Mindstorms EV3) using MATLAB<p>Hello all,</p><p>I am trying to program a self-balancing two-wheeled robot (GyroBoy) using Lego Mindstorms EV3. I have programmed the PID controller in MATLAB to balance it. I tried to program it by taking some help from an online available code which works perfectly well to balance it. (Code available <a href = "http://robotsquare.com/2014/07/01/tutorial-ev3-self-balancing-robot/">here</a> in the form of Lego EV3 software program). The problem is that the output of my PID, which is the input to the motors, has an unbound value. The EV3 motors take an input in the range [-100, 100]. Hence, when ever my PID output is more than 100, it runs the motor at 100% power. So, I am unable to balance the robot. I have tried scaling the PID output, but then the value is too low to be able to balance it. Can someone guide me in any direction regarding how to balance a GyroBoy using MATLAB? I am using the EV3 hardware support in MATLAB R2014b.</p>Mohammad Sarim/matlabcentral/answers/contributors/5109560-mohammad-sarimtag:www.mathworks.nl,2005:Question/1597112014-10-22T18:08:48Z2014-10-22T21:08:27ZCopy table's certain data into another table with corresponding variable names<p>Let's say I have a table with 10 rows and 10 columns. I'd like to copy 5 cols and 10 rows of the table into another one with their variable names. Is there a way to do that?</p><p>Thank you.</p>Ege/matlabcentral/answers/contributors/5717230-egetag:www.mathworks.nl,2005:Question/1597342014-10-22T21:07:42Z2014-10-22T21:27:30ZNeed Symmetric Multivariate Laplace Distribution<p>Hello,</p><p>I need a implementation of the Symmetric Multivariate Laplace Distribution so that I am able to draw random numbers and caluculate the likelihood.</p><p>I am searching for over two weeks now but I found none.</p><p>So, does such a script already exist?</p><p>Kind regards</p><p>J.</p>Jon/matlabcentral/answers/contributors/5078837-jontag:www.mathworks.nl,2005:Question/1589112014-10-16T17:58:11Z2014-10-22T21:05:03ZIs a there a Coder Product (Embedded, Simulink,or Matlab) which supports version 2010SP1<p>I am looking for a product which will convert my Matlab code into C++ code. I have looked into Matlab Coder extensively but it seems that it will not suffice as it is only compatible with versions of Matlab from 2011a on wards. I was going to look into the other coder products (Embedded/Simulink) but they both list Matlab Coder as a requirement.</p><p>I have Matlab Compiler but I was looking for a product which will fully convert my code and allow it to be run without any Matlab/MCR dependencies.</p><p>Is there a Matlab or third party product other there that will convert my code to C++ or will I just need to hand code it over?</p>John/matlabcentral/answers/contributors/5438225-johntag:www.mathworks.nl,2005:Question/1596132014-10-22T06:57:19Z2014-10-22T21:01:01ZMatlab 2014a won't open in Yosemite<p>Whenever I try to open Matlab, I get this message. Any solutions? (Also, it worked perfectly well when I was on mavericks)</p><img src = "/matlabcentral/answers/uploaded_files/19826/Screen%20Shot%202014-10-21%20at%2011.54.51%20PM.png">Mac/matlabcentral/answers/contributors/5216403-mactag:www.mathworks.nl,2005:Question/1596172014-10-22T07:38:21Z2014-10-22T20:56:32ZPlease explain the limitations of getting data out of teradata using sql<p>Error using cursor/fetch (line 283)
Java exception occurred:
java.lang.OutOfMemoryError: Java heap space</p><p>at java.util.Arrays.copyOf(Unknown Source)</p><p>at java.util.Vector.grow(Unknown Source)</p><p>at java.util.Vector.ensureCapacityHelper(Unknown Source)</p><p>at java.util.Vector.addElement(Unknown Source)</p><p>at com.mathworks.toolbox.database.fetchTheData.dataFetch(fetchTheData.java:666)</p><p>Error in loadPrepaymentData (line 36)
cursor = fetch(cursor);</p>Alex B/matlabcentral/answers/contributors/2872347-alex-btag:www.mathworks.nl,2005:Question/1596352014-10-22T10:12:36Z2014-10-22T20:55:38Zchange nested for to vectorise<p>Hi</p><p>I have a 100*100 grid as below:</p><pre class="language-matlab">xgrid=1:100;
ygrid=1:100;
</pre><p>I have 5 data points in this grid(x,y) as below,too:</p><pre class="language-matlab">X=[10 20 30 40 50];
Y=[55 65 75 85 95];
</pre><p>to compute distances of each node from these data points,I use a nested for structure as:</p><pre> deltaX=zeros(100,100,length(X));
deltaY=zeros(100,100,length(X));
for ii=1:length(X)
for jj=1:100
for kk=1:100
deltaX(jj,kk,ii)=X(ii)-xgrid(kk);
deltaY(jj,kk,ii)=Y(ii)-ygrid(kk);
end
end
end
deltaY=permute(deltaY,[2 1 3]);
distance1=hypot(deltaX,deltaY);
distancegrid=zeros(100,100,length(X));
distancegrid=squeeze(distance1);</pre><p>I want to remove this nested for structure and vectorise my code. How it's possible to do?</p><p>Thanks a lot</p><p>Mani</p>Mani Ahmadian/matlabcentral/answers/contributors/4207149-mani-ahmadiantag:www.mathworks.nl,2005:Question/1597332014-10-22T20:48:44Z2014-10-22T20:53:59ZHow to solve quadratic equations of nonscalar constants?<p>Hi guys,
I have another question. So I simply want to solve a quadratic equations, well MATLAB has roots function to find the solutions.</p><pre class="language-matlab">pol = [A B C];
sol = roots(pol);
</pre><p>which will give you the roots of Ax^2+Bx+C = 0. However in my problem all A, B, and C are matrix of the same size, and I want to get the largest root from each set of the polynomial constant comprising the elements of the same index from A, B, and C. Which means in the end I will get a matrix with the same size of either A, B, or C containing the largest roots from each set of equation. I can do this by using 'for' loop</p><pre class="language-matlab">for i = 1:size(A,1)
for j = 1:size(A,2)
pol = [A(i,j) B(i,j) C(i,j)];
root = max(roots(pol));
end
end
</pre><p>But this takes tremendous amount of time since the size of matrices A and the other is very big. I'm not sure if using another solver function like fzero will cut the execution time a lot. And simply using the familiar formula for solving quadratic equations is not favorable either because there are some zero elements in matrix A. So is there a way to solve this problem without using 'for', and give reasonable speed?</p><p>I will really appreciate your help.</p>Imam/matlabcentral/answers/contributors/5330169-imamtag:www.mathworks.nl,2005:Question/1597122014-10-22T18:09:43Z2014-10-22T20:43:30Zhow can i solve this problem give me a useful answer ASAP<p><b>x[n]=-0.75u[n]</b></p><p><b>h[n]=a.^n.*u[-n-2]</b></p><p><b>-15<=n<=15 ; a=0.15.</b></p>Adnan/matlabcentral/answers/contributors/5584653-adnantag:www.mathworks.nl,2005:Question/1597322014-10-22T20:43:19Z2014-10-22T20:43:19Z2014b axis label errors when printing to postscript<p>I am getting spaces in the axis label when I use a subscript. This behavior is new with 2014b, the same function for sure doesn't do this is 2013a. I was having troubles using greek letters as well, but found a work around. The issue with the Greek letters went away when setting the axis label font weight to normal, setting it to bold caused the issue (directly or indirectly, not sure). Any thoughts on why the print command is behaving differently? Currently using painters rederer, which is needed for impage quality and file size. I am also using MATLAB on Linux.</p>Nick Powell/matlabcentral/answers/contributors/1736784-nick-powelltag:www.mathworks.nl,2005:Question/1591792014-10-19T02:55:53Z2014-10-22T20:42:53ZHow to plot the pressure volume loop from the cardiovascular model<p>Hello, I have started to work on the cardiovascular model, but i don't know how to solve the lumped parameter model of left heart that includes 2 valves mitral and aortic valve 3 resistances left artrium, left ventricle and aortic respectively and an inductor, as left heart is a time varying component so there is capacitor there.</p><p>Can anybody tell me how to solve these equations and how to plot pvloop. attached is the model of cardiovascular system (left heart) and how to implement the state space of time varying system.</p>Muhammad/matlabcentral/answers/contributors/5789892-muhammadtag:www.mathworks.nl,2005:Question/1597312014-10-22T20:42:14Z2014-10-22T20:42:14Zhaving trouble setting Equations to matrix<p>if i have these 3 equations, how could i put them into a matrix using matrix to equation function in matlab. I've been trying to accomplish this, but no success.</p><pre class="language-matlab">eq1 = (-1)*T1*(Ae*K1/X1 + Ae*Hci + (Ae*Rho1*DX1*CP1)/Dt) + T2*(Ae*K1/X1) + Tin*(Hci*Ae) == ...
-T1*(Ae*Rho1*DX1*CP1/Dt);
</pre><pre class="language-matlab">eq2 = (-T2)*(Ae*K1/X1 + Ae*K2/X2 + Ae*(Rho1*DX1*CP1 + Rho2*DX2*CP2)/Dt) + T1*(Ae*K1/X1) + ... T3*(Ae*K2/X2) == -T2*((Ae*Rho1*DX1*CP1 + Ae*Rho2*DX2*CP2)/Dt);
</pre><pre class="language-matlab">eq3 = (-T3)*(Ae*K2/X2 + Ae*K3/X3 + Ae*(Rho2*DX2*CP2 + Rho3*DX3*CP3)/Dt) + T2*(Ae*K2/X2) + ... T4*(Ae*K3/X3) == -T3*((Ae*Rho2*DX2*CP2 + Ae*Rho3*DX3*CP3)/Dt);
</pre>Joshua/matlabcentral/answers/contributors/5682718-joshuatag:www.mathworks.nl,2005:Question/1596142014-10-22T07:00:50Z2014-10-22T20:41:49Zhow to show variation of two variables?<p>I am trying to run the following tank model, first with synthetic observation parameters, then with several sets of combinations of the two parameters (K and Smax). Those two pieces appear to work.</p><p>After that, I am trying to calculate the error (by comparing the synth values to all the model values) and then plot a mesh grid of the error as it varies with changes to each of the variables. The figure shows only Smax varying, while K appears to stay the same. This is incorrect.</p><p>Can anyone see why/show me how to fix this?</p><p>Code below, data attached.</p><p>Thank you!!</p><pre class="language-matlab">%%
% Spill Scenario
% Storage where k=0.1; Smax=50
%
SynthK=0.1;
SynthSmax=50;
Storage = [Precipmmday(1) 0];
Baseflow = [Precipmmday(1) 0];
for k1 = 2:length(Precipmmday)
Baseflow (k1,:) = [(Storage(k1-1,2)+Precipmmday(k1-1))*SynthK];
Storage(k1,:) = [(Storage(k1-1,2)+Precipmmday(k1-1))*(1-SynthK)];
end
SynthStorage = Storage;
SynthStorage (:,1) =[];
</pre><pre> SynthSpill=SynthStorage - SynthSmax;
SynthSpill(SynthSpill<0)=0;</pre><pre> SynthStorage(SynthStorage>SynthSmax)=SynthSmax;</pre><pre> SynthBaseflow = Baseflow;
SynthBaseflow (:,1) = [];</pre><pre> SynthOutflow = SynthBaseflow + SynthSpill;</pre><pre> %%
% Run Model (10x10)
Baseflow = zeros(10,10);
Storage = zeros(10,10);
Storage = [Precipmmday(1) 0];
Baseflow = [Precipmmday(1) 0];
Smax = linspace(10,500,10);
K = linspace(0.01,1,10);
for k3 = 1:length(Smax)
for k2 = 1:length(K)
for k1 = 2:length(Precipmmday)
Baseflow(k1,k2,k3) = [(Storage(k1-1,2)+Precipmmday(k1-1))*K(k2)];
Storage(k1,k2,k3) = [(Storage(k1-1,2)+Precipmmday(k1-1))*(1-K(k2))];
end
ModelStorage = Storage;
ModelSpill=ModelStorage - Smax(k3);
ModelSpill(ModelSpill<0)=0;
ModelStorage(ModelStorage>Smax(k3))=Smax(k3);
ModelBaseflow = Baseflow;
ModelOutflow = ModelBaseflow + ModelSpill;
end
end</pre><pre> %%
% Calculate Difference
SynthOutflow = repmat(SynthOutflow,[1 10 10]);
Difference = ModelOutflow - SynthOutflow;</pre><pre> %%
% Root Mean Square Error
rmse = sqrt((sum((Difference(1:1087,:,:)).^2))/1087);
rmse1 = reshape(rmse,10,10);</pre><pre> %%
% RMSE Figure
figure;
mesh(K, Smax, rmse1);
xlabel('k')
ylabel('Smax')
zlabel('err')</pre>Vert/matlabcentral/answers/contributors/5756569-verttag:www.mathworks.nl,2005:Question/1597302014-10-22T20:39:11Z2014-10-22T20:39:11Zkeeping the distance between objects<p>Hello world,</p><p>Think of two linear trajectories. Hooks will be moving along those trajectories with "rope" tied between them - hook1 from traj1 with hook1 from traj2 with hook2 from traj1 with hook2 from traj2 and so forth. The two trajectories are in one plane with the center line, symmetrically at an angle around the center line and the hooks need to decelerate to 0 along the trajectory. To simplify, there'll be no queue forming at one end.</p><p>I know the timing of hooks because I know the speed of new rope coming in and the length of the rope between hooks. I have found equations for the trajectories, created 1x* matrizes for time and position according to the resolution I will be able to control the hooks at and decided the deceleration along the centerline should be linear for simplicity. What I'm now trying to do is output a lookup table of position (and speed) along either trajectory and the time for that position. As there's nothing dynamic this table will be looped through for each new hook.</p><p>I have thought of few ways to go about this, each looks equally beyond my ability right now so I'm hoping for your support.</p><p>1. Try to program "free particles" that will be bound by the boundary conditions a) the trajectory b) the distance to the one coming after. It seems to me this would incur great performance tribute.</p><p>2. Try to program a circle with the diameter of the distance between two hooks and let that decelerate linearly along the centerline. I don't know how to check the intersections with the trajectories and how to properly adapt the speed of either of the hooks along their trajectories.</p><p>3. Perhaps someone could do this with higher-than-I-could-come-up-with differential maths?</p><p>4. Perhaps I'm not seeing some easy relationship between the centerline and trajectoral deceleration that would save me all of the above work?</p><p>I do hope somebody can give me very easy to understand advice / instructions on which idea would be best and how to actually do it.</p><p>Thank you very much!
Philipp</p>Philipp/matlabcentral/answers/contributors/4302723-philipptag:www.mathworks.nl,2005:Question/1597252014-10-22T19:20:39Z2014-10-22T20:38:37ZHow to create images database in matlab to store 5 images.<p>I want to make a database of 5 images I have, which are img1,img2,img3,img4,img5. I will will use this for template matching which is part of my research. please any body can help me in this regard to provide me the source code?</p>Sadiq Shah/matlabcentral/answers/contributors/4819485-sadiq-shahtag:www.mathworks.nl,2005:Question/1596092014-10-22T05:42:54Z2014-10-22T20:38:08ZData acquisition using Arduino Uno. I controlled the Arduino Uno board through Matlab. How can I control the sampling rate and the acquisition time? I post my codes. Thank you!<p>Hello Everyone! I am using Arduino Uno for data acquisition. My sampling rate is 1 kHz. I am doing the sampling through Matlab.I am controlling the Arduino Uno Board through Matlab. For some reason, my function loop infinitely. Can anyone help me figure out what I am doing wrong.</p><p>{</p><p>myArduino = arduino('COM4','Uno');</p><p>% Configure Arduino
A0 = 0;
myArduino.configureAnalogPin(A0,'Input');</p><p>Fs = 1000; % Sampling rate
Ts = 1/Fs; % Sampling Period
t1 = 0; % Sampling starting time
t2 = 60; % Duration of collection in second
t = t1:Ts:t2; % Data acquisition Time range
n = length(t); % Length of the time matrix</p><p>voltage = zeros(n,1); % Initializing the voltage matrix
time = zeros(n,1); % Initializing the time matrix</p><p>for i=1:n
time(i) = t(i);
voltage(i) = myArduino.readVoltage(A0);</p><p>end</p><p>}</p>Paul/matlabcentral/answers/contributors/5488189-paultag:www.mathworks.nl,2005:Question/1597292014-10-22T20:10:03Z2014-10-22T20:34:35ZHow to run exe with argumants using matlab <p>Hello.
I have a matlab-based exe that I need to call using matlab.
I understand system(myexe.exe) will run it. However, I need the exact syntax for calling the exe with parameters such as:
parName1 str1
parName2 val2</p><p>Would it be system('myexe.exe' 'parName1' 'str1' 'parName2' 'val2') for example....i.e. comas, quotation marks, oxford commas spaces etc etc...would integer values, such as val2 need ' or not etc? If anyone would let me know the exact syntax that would be great!</p><p>Thank you</p>David/matlabcentral/answers/contributors/1207413-davidtag:www.mathworks.nl,2005:Question/1597282014-10-22T20:04:08Z2014-10-22T20:34:22ZPlot a tilted looking polygon<p>I have the following data that creates 3-d plot</p><pre> x_min = 200; x_max = 500;
rand_x = x_min + (x_max - x_min )*rand(60,1);
y_min = -500; y_max = 950;
rand_y = y_min + (y_max - y_min )*rand(60,1);
z_min = -50; z_max = 50;
rand_z = (z_max - z_min )*rand(60,1);
plot3(rand_x,rand_y,rand_z,'x')</pre><p>When I rotate it to look from the 2-d view it looks something like this :</p><img src = "/matlabcentral/answers/uploaded_files/19872/Screen%20Shot%202014-10-22%20at%202.58.06%20PM.png"><p>What I want is, using the data(min n max of each axis can be changed) and using the same view i.e 2-d view of 3-d data, I want this to look a little tilted. Can anyone tell me how it can be done?</p>KRUNAL/matlabcentral/answers/contributors/5309685-krunaltag:www.mathworks.nl,2005:Question/1596192014-10-22T08:01:18Z2014-10-22T20:28:44ZHow can I invert the number on axes and label ?<pre> The axes and label are inverted on 3d graph when I am Inserting background image on Guide Matlab. Anybody have any idea how can fix it? If I can take off background image, the axes and label come back to normal.</pre><img src = "/matlabcentral/answers/uploaded_files/19828/Untitled.png">Tarcisio Pinheiro/matlabcentral/answers/contributors/3958701-tarcisio-pinheirotag:www.mathworks.nl,2005:Question/1596802014-10-22T14:47:07Z2014-10-22T20:25:50Zcan any one tell me how to find z transform of unit step??<p>i have tried but ans isn't correct...
like
a=heaviside(n)
ztrans(a)
ans =</p><p>1/(z - 1) + 1/2</p><p>why 1/2 ????
plz help me out</p>Asia khan/matlabcentral/answers/contributors/5540188-asia-khantag:www.mathworks.nl,2005:Question/1594952014-10-21T11:39:35Z2014-10-22T20:24:05ZMorphing 2D cartesian coordinates, from one shape to another<p>Hi All,</p><p>I have a slight problem for which I'm sure there must be a Matlab function but I can't work out what it is. I have a load of 2d cartesian coordinates which all fall within a rectangular box (A), I need to morph these coordinates to fill a different box (B) which has the same dimensions but is rotated to a different angle. I need to morph the coordinates, not rotate them (I can do that already).</p><p>I have been looking at various functions but they all seem to be related to images, not coordinate data, although many of them take a series of coordinates on which to base their morphing, which is why I think Matlab must be able to morph the coordinates themselves...</p><p>Any help would be greatly appreciated,</p><p>Rod.</p>Right Grievous/matlabcentral/answers/contributors/3986127-right-grievoustag:www.mathworks.nl,2005:Question/1596712014-10-22T13:45:55Z2014-10-22T20:15:45ZWhether a point lies within a rectangle (Fast solution)<p>I have a large list of points and a large list of rectangles.I want to find the number of points inside each rectangle.I have a working solution which is very TPT heavy.</p><p>Is there a faster way of implementing this.</p><p>What I am doing now : Assume point P’s coordinate is (xp,yp), and the rectangle’s lower left point is (x1,y1) and upper right point is (x2,y2):if (xp is between x1 and x2) AND (yp is between y1 and y2)
then the point(xp,yp) is inside the rectangle.The issue is i have a large set of points (> 20000) and a larger set of rectangles(lets say also > 2000)</p><p>Now i can loop over each rectangle to caluclate the the number of points in each</p><pre> for ii=1:20000
ind = Xcord>Rects(ii,1) & Xcord<Rects(ii,3) & Ycord>Rects(ii,2) & Ycord<Rects(ii,4);
count = sum(ind);
end</pre>vivek/matlabcentral/answers/contributors/5451444-vivektag:www.mathworks.nl,2005:Question/1597052014-10-22T17:09:41Z2014-10-22T20:01:53ZTrying to use simplify with an equation equal to zero.<p>I'm sorry if this has been asked previously. I've tried searching and can't seem to find this scenario though I can't imagine I'm the first person to have this issue. Here's the code I'm working with, this is for a control systems problem...</p><pre class="language-matlab">syms s k
sys = k*(s-1)*(s-2)/(s*(s+1));
sysEqn = 1+sys ==0;
routh_func = simplify(sysEqn)
</pre><p>I'm getting the output I want...</p><pre class="language-matlab">Routh Function
2 2
2 k + s - 3 k s + k s + s == 0
</pre><p>I want to the extract the coefficients [(1+k,1-3k,2k)] to be used with a Routh function. The problem I'm running in to is that the "== 0" needs to be removed and is stopping me from using something like this...</p><pre class="language-matlab">routh_coeffs = coeffs(routh_func)
syms epsilon
RA = routh(routh_coeffs,epsilon)
</pre><p>To discern the routh table. Yes I know routh isn't a built in function, credit to Author:Rivera-Santos, Edmundo J.
E-mail:edmundo@alum.mit.edu. For the routh function (downloaded from these forums!).</p><p>Any help would be greatly appreciated. Thank you!</p>ch/matlabcentral/answers/contributors/5806572-chtag:www.mathworks.nl,2005:Question/1597262014-10-22T19:26:51Z2014-10-22T20:01:18Zhow to rotate cube not parallel to axis<p>Dear,</p><p>I used from file exchange-MATLAB central a program to generate a cube then I tried to rotate but the new cube is parallel to axis so how I get cube not parallel like that</p><pre class="language-matlab">function drawBox3d(box, varargin)
%DRAWBOX3D Draw a 3D box defined by coordinate extents
%
% drawBox3d(BOX);
% Draw a box defined by its coordinate extents:
% BOX = [XMIN XMAX YMIN YMAX ZMIN ZMAX].
% The function draws only the outline edges of the box.
%
% Example
% % Draw bounding box of a cubeoctehedron
% [v e f] = createCubeOctahedron;
% box3d = boundingBox3d(v);
% figure; hold on;
% drawMesh(v, f);
% drawBox3d(box3d);
% set(gcf, 'renderer', 'opengl')
% axis([-2 2 -2 2 -2 2]);
% view(3)
%
% See Also:
% boxes3d, boundingBox3d
%
% ---------
% author : David Legland
% INRA - TPV URPOI - BIA IMASTE
% created the 10/12/2003.
%
</pre><pre class="language-matlab">% HISTORY
% 2010-02-22 creation
</pre><pre class="language-matlab">% default values
</pre><pre class="language-matlab">xmin = box(:,1);
xmax = box(:,2);
ymin = box(:,3);
ymax = box(:,4);
zmin = box(:,5);
zmax = box(:,6);
</pre><pre class="language-matlab">nBoxes = size(box, 1);
</pre><pre class="language-matlab">for i=1:length(nBoxes)
% lower face (z=zmin)
drawEdge3d([xmin(i) ymin(i) zmin(i) xmax(i) ymin(i) zmin(i)], varargin{:});
drawEdge3d([xmin(i) ymin(i) zmin(i) xmin(i) ymax(i) zmin(i)], varargin{:});
drawEdge3d([xmax(i) ymin(i) zmin(i) xmax(i) ymax(i) zmin(i)], varargin{:});
drawEdge3d([xmin(i) ymax(i) zmin(i) xmax(i) ymax(i) zmin(i)], varargin{:});
</pre><pre> % front face (y=ymin)
drawEdge3d([xmin(i) ymin(i) zmin(i) xmin(i) ymin(i) zmax(i)], varargin{:});
drawEdge3d([xmax(i) ymin(i) zmin(i) xmax(i) ymin(i) zmax(i)], varargin{:});
drawEdge3d([xmin(i) ymin(i) zmax(i) xmax(i) ymin(i) zmax(i)], varargin{:});</pre><pre> % left face (x=xmin)
drawEdge3d([xmin(i) ymax(i) zmin(i) xmin(i) ymax(i) zmax(i)], varargin{:});
drawEdge3d([xmin(i) ymin(i) zmax(i) xmin(i) ymax(i) zmax(i)], varargin{:});</pre><pre> % the last 3 remaining edges
drawEdge3d([xmin(i) ymax(i) zmax(i) xmax(i) ymax(i) zmax(i)], varargin{:});
drawEdge3d([xmax(i) ymax(i) zmin(i) xmax(i) ymax(i) zmax(i)], varargin{:});
drawEdge3d([xmax(i) ymin(i) zmax(i) xmax(i) ymax(i) zmax(i)], varargin{:});</pre><pre class="language-matlab">end
</pre><p>I tried to use</p><pre class="language-matlab">t1=45;
t2=30;
Rxy = [cos(t1) -sin(t1), 0; sin(t1), cos(t1), 0; 0, 0, 1];
Rxz = [cos(t2) -sin(t2), 0; 0, 0, 1; sin(t2), cos(t2), 0];
min=[xmin; ymin; zmin];
max=[xmax; ymax; zmax];
min = Rxy*Rxz*min
max = Rxy*Rxz*max
</pre><p>can I transfer it using a corner point that we use it in 2dim.</p><p>could anyone help me.</p><p>regards</p>imola/matlabcentral/answers/contributors/5505761-imolatag:www.mathworks.nl,2005:Question/1595932014-10-22T01:00:57Z2014-10-22T19:59:48Zupon upgrade from Matlab13a to Matlab14b, GUI missing some buttons<p>Upon startup of Matlab 14b I got several messages like this:</p><p>Warning: Could not find appropriate function on path loading function handle
/usr/global/matlab2013a/toolbox/matlab/uitools/@uitools/@uibuttongroup/childAddedCbk.m>manageButtons</p><p>Then, when I ran my GUI, some buttons are missing. What is up with this?</p><p>-Jeff</p>Jeff Eriksen/matlabcentral/answers/contributors/2547450-jeff-eriksentag:www.mathworks.nl,2005:Question/1509952014-08-15T14:01:10Z2014-10-22T19:58:50ZHow to convert 3D point cloud (extracted from sparse 3D reconstruction) from pixels to millmeters?<p>I have found a 3D point cloud using 3D sparse reconstruction (like this example <a href = "http://www.mathworks.com/help/vision/ug/sparse-3-d-reconstruction-from-multiple-views.html">http://www.mathworks.com/help/vision/ug/sparse-3-d-reconstruction-from-multiple-views.html</a> )</p><p>Now I was wondering how I can convert the (X,Y,Z) in this point cloud to actual real world measurements in millimeters.</p><p>can I use some thing like this( <a href = "http://www.mathworks.com/matlabcentral/answers/103990-how-to-convert-pixels-to-cm">http://www.mathworks.com/matlabcentral/answers/103990-how-to-convert-pixels-to-cm</a> )?
Thanks</p>kijo maken/matlabcentral/answers/contributors/960170-kijo-makentag:www.mathworks.nl,2005:Question/1588972014-10-16T16:55:47Z2014-10-22T19:52:49ZAdding subplots to animated gif file<p>Hi all,</p><p>I have the following code to create a gif from my data plots and I would like to do this with subplots for other parameters. The code is a bit messy but I am not sure how to work the handles for the subplots to have the playback synchronized for each plot:</p><pre class="language-matlab">DATASET1 = tower_pres_allyrs(1:100,1);
DATASET2 = tower_pres_allyrs(1:100,2);
</pre><pre class="language-matlab">h = plot(NaN,NaN);
axis([min(DATASET1) max(DATASET1) min(DATASET2) max(DATASET2)]);
</pre><pre class="language-matlab">for ii = 1:length(DATASET1)
pause(0.1)
set(h, 'XData', DATASET1(1:ii), 'YData', DATASET2(1:ii));
drawnow
frame = getframe(1);
im = frame2im(frame);
[imind,cm] = rgb2ind(im,256);
if ii == 1;
imwrite(imind,cm,'filename.gif','gif','Loopcount',inf,'DelayTime',0.01);
else
imwrite(imind,cm,'filename.gif','gif','WriteMode','append','DelayTime',0.01);
end
end
</pre><p>Thanks!</p>Masao Ashtine/matlabcentral/answers/contributors/4739967-masao-ashtinetag:www.mathworks.nl,2005:Question/1597222014-10-22T18:44:58Z2014-10-22T19:30:20ZHow to move a (x,y) line plot to the z axis?<p>Hi everyone</p><p>I have recently got matlab and have been trying to use it to plot some functions.
So far, i have been using plot(x,[y0,y1,y2....]) to plot several functions in one 2D plot, how can i move the y lines along the z axis to give a 3d view instead of them overlapping, with spacing long z, (0:7.5:60). So y0 would be at z=0, y1 at z=7.5, y2 at z=15. If the spacing can be filled in aswell to look like a smooth plain. If that makes any sense any help would be welcome.
Thank you.</p>Cio/matlabcentral/answers/contributors/5772400-ciotag:www.mathworks.nl,2005:Question/1595072014-10-21T12:51:09Z2014-10-22T19:26:44ZRotations of simulink 3D animation do not correspond to mates in Solidworks assembly<p>I am trying to export a simple solidworks model existing of two links. One is fixed, and the other one can rotate around the others end. If I test the model in simmechanics, it works fine. If I import it to the virtual reality world, the model rotates around different coordinate systems, but none of them correspond with the mates I created in solidworks.</p><p>This is what I did to create the model.</p><p>Create the solidworks assembly
Create mates (concentric and coincident mate)</p><p>Export to xml file via Simmechanicslink, use smimport to create the slx file, test the model in simmechanics, see if it behaves correctly (the rotation of the hinge is correct in the simmechanics model)</p><p>Save the Solidworks assembly as a VRML file (uncheck the “save all components of the assembly file in a single file” box).</p><p>Insert a VR Sink block in a new slx file to connect Simulink to the virtual world</p><p>Create inputs for a rotation ( a vector [1 0 0] for the rotation axis and an input for the angle)</p><p>Click on the VR Sink block and open the source file (the wrl file created in solidworks)</p><p>Now I can select one of the many rotations as an input for the VR Sink, but none of them are
linked to the mates I created in solidworks…. The part rotates around a different axis.</p><p>Do I need to recreate the constraints in the VR world (where can I find how) or am I doing something wrong while exporting the model?</p><p>Thanks!</p><p>Floris</p>Flo20/matlabcentral/answers/contributors/2845612-flo20tag:www.mathworks.nl,2005:Question/1595772014-10-21T21:10:51Z2014-10-22T19:24:36ZMalab Python problem -- isloaded set to 0<p>Hi,</p><p>I have downloaded the newest Matlab (R2014b) and am trying to call a Python script from my Matlab script. When I run "pyversion" I get this output:</p><pre> version: '2.7'
executable: '/Applications/anaconda/bin/python2.7'
library: '/Applications/anaconda/lib/libpython2.7.dylib'
home: '/Applications/anaconda'
isloaded: 0</pre><p>Why is "isloaded" equal to 0, why isn't it loading? I'm not sure how to fix this issue.</p>Mahesh/matlabcentral/answers/contributors/5802533-maheshtag:www.mathworks.nl,2005:Question/1592902014-10-20T02:24:55Z2014-10-22T19:15:55ZVirtual Camera Support for Matlab Image Acquisition Toolbox<p>Dear Matlab Support:</p><p>I would like to ask if there is any easy way to have virtual cameras working with the Image Acquisition Toolbox.</p><p>I'm seeking to stream MJPEG videos from IP Cameras to Matlab. After searching all Matlab Central and reading documentation, I know such a feature is currently not directly supported. Whilst alternatives such as capturing only a single JPEG snapshot or using mexopencv do exist, they are not desirable in my case.</p><p>I was trying to create virtual cameras using two alternatives: one is to use Axis Streaming Assistant (my IP cameras are Axis), and the other is to use IP Camera Adaptor (<http://ip-webcam.appspot.com)>. In both cases, I was able to create a virtual camera forwarding MJPEG stream from the real IP camera. I have verified that the virtual camera works in instant messaging applications (such as Skype).</p><p>However, Matlab Image Acquisition Toolbox does not detect these virtual cameras. I have installed all possible specific and generic camera packages. The Image Acquisition Toolbox only detects the built-in physical camera on my laptop ('winvideo'). I have Matlab 64 bit R2014a on my laptop.</p><p>Therefore, I would like to know if there is any easy way to get virtual cameras detected by Matlab? Or is it a current limitation and it would require writing a specific driver for the virtual camera? Once again, I note that other instant messaging applications can detect both the physical and virtual cameras on my laptop.</p><p>Thank you,</p><p>Sonny</p>Sonny Pham/matlabcentral/answers/contributors/3098782-sonny-phamtag:www.mathworks.nl,2005:Question/1594592014-10-21T05:28:28Z2014-10-22T19:09:24ZHow to enable External Mode for a Simulink model containing multiple referred models?<p>Hi ALL,</p><p>I have been searching for quite a while if there is a way to run my Simulink project model, which consists of upto 7 referenced models and many more subsystems. Its of interest to run in the external mode for simplifying the debugging process!</p><p>I and colleagues of mine were in touch with Mathworks support engineer ( just before the summer) and tried to find a solution to this, but what we came to know was that its, as of then, not supported to Simulink models with referenced models inside them. And we managed to get our hands on a forum thread where someone posted a workaround to transform all the referenced models in to subsystems. But the thing is this function was for Matlab 2009 and we run Matlab 2013b, which didn't work for us anyway evenif we tried to modify it.</p><p>So my question remains, is there any support in Matlab R2014b for referenced models to run in External Mode or is there an official supported workaround to transform referenced models in to subsystems in Simulink so that one can run external mode on the whole project file ( model) ?`</p><p>Many regards!</p>Henok Mentamo/matlabcentral/answers/contributors/5361498-henok-mentamotag:www.mathworks.nl,2005:Question/1588692014-10-16T13:41:15Z2014-10-22T19:02:49ZXcode 6.0.1 and MATLAB 8.1 (2013a)<p>Hello guys,</p><p>I'm trying to generate a C code from my MATLAB function and I catch an error since Xcode was updated on my Mac OSX Maverick...</p><p>Here is the error :</p><pre> xcodebuild: error: SDK "macosx10.8" cannot be located.
3 xcrun: error: unable to find utility "clang", not a developer tool or in PATH
4 gmake: *** [homography_initialize.o] Error 72</pre><p>I had already fixed the problem for Xcode 5.0 by editing mexopt.sh on MATLAB root system by replace 10.6 SDK by 10.7.</p><p>Now, it's asking for 10.8 and I don't know if I have to replace it by 10.7 or 10.6...</p><p>Can anyone help me to solve this problem ?</p><p>Thank you for helping !</p><p>Muth.</p>Emmanuel/matlabcentral/answers/contributors/5137084-emmanueltag:www.mathworks.nl,2005:Question/1597232014-10-22T18:47:04Z2014-10-22T18:58:14ZCan you set limits on color bar when using erpimage?<p>Hi all,</p><p>Does anyone know if you can set a limit to the colour bar (cbar) when using erp image? I know you can typically when using cbar but, I cannot seem to achieve it when using cbar in erpimage function? Many thanks.
An eample of my code is as follows: figure; erpimage(CNV2_HighCpp,CNV2_HighPkLatCpp,[-500 1485 512],'High Coh Stim-Map Trials With 100 Trial Smoothing', 100,1,'cbar', 'limits', [0 1600], 'erp','erp_grid');</p><p>Thanks,
Deirdre</p>Deirdre Twomey/matlabcentral/answers/contributors/3899165-deirdre-twomeytag:www.mathworks.nl,2005:Question/1597132014-10-22T18:11:53Z2014-10-22T18:49:22ZPick out rows one by one from a vector to use as initial values in differential equation?<p>Hi everyone!</p><p>I just finished a school project where I had use a while loop to solve a second order differential equation.
I just needed a vector with four initial values in it and then solve the equation with Runge Kutta which I did with a while loop.</p><p>While this is not included in the project, I just wonder: assume I have a vector with 4 columns and say 100 or 500 rows, where each column represents one initial value. I want to use the first row as starting values for the runge kutta while loop. After the lopp has completed I want to run the while loop again but with the second row from the vector as starting values. After that I want to runt the while loop with the third row from the vector as starting values!</p><p>You get the idea?</p><p>My question is how do I achieve this? I assume I should use a for loop which I have tried without success. I hope you understand the question, I am fairly new to Matlab so I have a hard time talking in "matlab" language :P</p><p>Best regards and thanks for your help!</p>Michael B/matlabcentral/answers/contributors/5794895-michael-btag:www.mathworks.nl,2005:Question/1597242014-10-22T18:47:39Z2014-10-22T18:47:39ZHow do I get Matlab to work with Yosemite for student editions of Matlab?<p>I downloaded and installed the patch to make Matlab R2013a compatible with the new Mac OS Yosemite but i still get the error that it is not compatible with the current OS. Is the patch not working because I have a student edition or is there something else I need to do?</p>Phoebe/matlabcentral/answers/contributors/5026346-phoebetag:www.mathworks.nl,2005:Question/1597202014-10-22T18:40:01Z2014-10-22T18:40:01Zbluetooth problem witn instrhwinfo('Bluetooth'); command <p>writing >> instrhwinfo('Bluetooth'); return this error:</p><p>Error using instrhwinfo (line 195)
Java exception occurred:
java.lang.UnsatisfiedLinkError:</p><p>and many other error line</p><p>and writing >> instrhwinfo('Bluetooth','moayad'); return error:</p><p>Error using instrhwinfo (line 297)
Specified ADAPTOR was not found or could not be loaded.</p><p>what is the problem?</p>Moayad Al-Omari/matlabcentral/answers/contributors/5806880-moayad-al-omaritag:www.mathworks.nl,2005:Question/1597192014-10-22T18:30:33Z2014-10-22T18:39:21Zhow to normalize a matrix?????<p>hello everyone...
i need a code to normalize( between 0 and 1) a matrix 7*50. the normalization process should be for each column not row**. in other words, the program should seek for the largest value in each column and divide all the elements in that column by it.
can anybody help plzz</p>abdulkader helwan/matlabcentral/answers/contributors/4753564-abdulkader-helwantag:www.mathworks.nl,2005:Question/1597182014-10-22T18:29:25Z2014-10-22T18:29:25ZHow to select RapidSTM32 Target in matlab 2013(a)<p>How to select RapidSTM32 Target in matlab 2013(a)</p>Sneha/matlabcentral/answers/contributors/5578028-snehatag:www.mathworks.nl,2005:Question/1595372014-10-21T15:24:16Z2014-10-22T18:28:45ZHow to integrate using while loop?<p>Hi all,</p><p>I have a function: PM =@(w) (5/16*3^2.*(0.5578^4./w.^5).*exp(-5/4.*(w./0.5578).^(-4)));</p><p>its integral: A=integral(PM, 0, 5);</p><p>I want to divide the area under the function into equal area pieces. Each beeing of a size= A/n, where n is any number desired. To achieve this I was trying to use while loop, but did not succed. Additionally, I need to keep trace at which values of w the condtion is met.</p><p>Thanks.</p>Andrejus/matlabcentral/answers/contributors/5709378-andrejustag:www.mathworks.nl,2005:Question/1596862014-10-22T15:11:02Z2014-10-22T18:26:46Zcannot save mat file over nfs (zfs)<p>Hi,
We are using matlab on a computing client that has way to small ssd drive to include all users' data. So I have created a ZFS filesystem for the home directories of users with several TB of data that is shared through NFS. When a user login to the client, it's home directory is directly in the ZFS server.</p><p>This works pretty well untill I tried to save a mat file through matlab. It does not work. If I try the same on a local drive of the client it works without problem.</p><p><b>Error using save
Unable to write file /data/jonathan/par/229EAx_2605/Rest/rp_s003a1001_001.txt: No such file or directory.</b>
In file "/usr/local/spm12m14a/spm_realign.m" (v6070), function "save_parameters" at line 541.
In file "/usr/local/spm12m14a/spm_realign.m" (v6070), function "spm_realign" at line 162.
In file "/usr/local/spm12m14a/config/spm_run_realignunwarp.m" (v5644), function "spm_run_realignunwarp" at line 78.</p><p>Should I share the NFS with "no_root_squash" ? Or with 32bitclients although I haven't found that option on the zfs share command.</p><p>Thank you,</p><p>Jonathan</p>Jonathan Berrebi/matlabcentral/answers/contributors/1644721-jonathan-berrebitag:www.mathworks.nl,2005:Question/1597162014-10-22T18:26:27Z2014-10-22T18:26:27Zoverlay geotiffs with transparency using different colormaps<p>If I have one geotiff plotted (using geoshow) in color how do I overlay another geotiff in black and white and make it partially tranparent?</p>Ruth/matlabcentral/answers/contributors/1322489-ruth