Combining a matrix of numbers with a vector of strings
Hi All; I am trying to combine a matrix of numbers with a column vector of strings. I am looking at ways of combining these two into a single matrix. Example: % Matrix of numbers. num_mat=[1,2,10;25,2,1;10,9,21]; % Coulmn vector of string, X. for i = 1:size(num_mat,1) str_vect(i,1)='X'; end I know I ... 9 Sep 2009 04:10
Suppressing Scientific Notation when exporting data as asciifile tia sal22
Rick T wrote: Greetings All I have matlab 7.6.0.324 (r2008a) I'm trying to export data as a text file that just has numbers and matlab keeps exporting it with scientific notation with e. this is the command I use to export the text file save c:\\testdata.txt exportFile -ascii I've chang... 10 Sep 2009 13:36
Plotting a For end loop
I'm trying to plot the following in the upper left hand corner of a subplot, but I can't figure out how to plot it! t=0:001:1 s=(1:1001) for f=0:5:100 s + sin(2*pi*f*t) end Any suggestions on what I'm doing wrong? When i type plot(t,s) I get a straight line and I need a crazy sine wave. Thanks! liz ... 8 Sep 2009 20:24
Solve Equation
I am new to Matlab. I have to solve the following equation a = x*exp(-(y-sqrt((1.4732e-046)/z)*b)/(1.6067e-020)) x, y, z are unknown a and b has 6 values each which are a = [2.35*10^-13; 2.504*10^-11; 3.06*10^-11; 4.45*10^-11; 5.46*10^-11; 5.8*10^-11]; b = [1.23*10^4; 1.39*10^4; 1.65*10^4; 1.77*10^4; 1.88*10^4... 8 Sep 2009 17:04
cell2mat function
i want to do the conversion cell2mat, but the problem is that the guy that i want to convert has '[]' empty components in some cells, and numeric data in the rest of them, so i have this error: All contents of the input cell array must be of the same data type i cannot change the '[]' for 0 because i need to read... 8 Sep 2009 15:56
Combining histogram and plot
Hi everyone, I've got some measure data from which I create a histogram. And now I've got a function for like the expected values, but it's a plot. Everything is fine if I hist() the data and plot() the function, but I'd like to combine them in one single graph. I've tried hist(...) Hold on plot(...) but ... 8 Sep 2009 17:04
How to insert a variable as a cell array in GUIDE?
Hei, I would like to insert a variable in GUIDE which needs to be written in cell array for post-calculation! After running GUIDE this variable needs to be in following form,e.g. A={[1] [2] [2 3]} so that the different elements from the cell array can be acquired. Is it possible to do it any other way than ... 9 Sep 2009 13:04
cognitive radio
hi I'm doing project in cognitive radio. how to define different channels(frequency bands ) in matlab.normally,a node sense for free media(single channel) for data transmission. if any one knows plz guide me ... 8 Sep 2009 09:11
getting CIE XYZ values from rgb image
Hi there, I'm new to image processing in Matlab and was wondering if any one could help. I'm trying to select a pixel from an rgb image and then transform those values into the XYZ colour coordinate system using Matlabs srgb2xyz function, sounds simple but I can't get this to work, so far I have: I_rgb = imre... 8 Sep 2009 04:50
Parallel execution of different functions
I want to execute two different functions at the same time. Any suggestions?? Thanx Ahsan ... 8 Sep 2009 09:11