Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

SEARCH Advanced Search

  

Popular Tags: ... >> See all tags

View All: Most Recent | Most Active | Needing Replies


  View Subject Only
Duration: All Time | Last Year | Last 30 Days | Last 7 Days 1-25 of 446 || Next >> 
Message View

Subject:


I have a collection of date strings in the format: Tue Oct 21 11:24:04 EST 2014

I would like to convert them to seconds or some other numeric quantity so I can order them and perform calculations. This failed:

datestr(datenum(b, 'd-mm-HH:MM:SS'))

E >> more

Original post by Chris Williams
Last post by Yair Altman - 23 Oct 2014 - 1 reply

Subject:


Hello all,

I am trying to have access the x and y data of some points of my GUI plot using datacursormode. In the datacursormode docs, it says that c_info is a structure array including coordinates of all points selected by cursor. I have tried the follo >> more

Original post by Maryam
Last post by Maryam - 23 Oct 2014 - 1 reply

Subject:


Hi,

I want to get numbers from a file, one example line in the file is as:
TS:123456 Rec:0001 Tag:0002 Data: 20 00 63

The code I have is :

fid = fopen('1.txt','r');
tline = fgets(fid);

C = strsplit(tline)
C(1)
Timestamp = sscanf(C(1),'TS:%f',[1 Inf]) >> more

Original post by Edgar
Last post by Edgar - 23 Oct 2014 - 2 replies

Subject:


I am doing some crazy operations with fractions, and when I obtain the final result, it is stored as a vector of elements for the result as opposed to a whole number.

i.e. output = [ 1, 4, 6]

when the output should be: 641

so it also puts them in the r >> more

Original post by Scott
Last post by Bruno Luong - 22 Oct 2014 - 2 replies

Subject:


I am importing a shapefile into Matlab (S) and I need to retrieve latitude and longitude coordinates (currently projected - Albers- in planar coordinates). From the projection file (.prj) the Stereographic North Pole projection and its parameters are the >> more

Original post by Eric
Last post by Rob Comer - 22 Oct 2014 - 4 replies

Subject:


Hi all,

I tried to get the numbers out of a file and got stuck.

Here are the code:

fid = fopen('60_vedio1.txt','r'); %type('60_vedio1.txt')
tline = fgets(fid);
C = strsplit(tline)
C(1)
Timestamp(i) = sscanf(C(1),'TS:%f',[1 Inf])

The output is:

C = >> more

Original post by Edgar
Last post by Edgar - 22 Oct 2014

Subject:


Hi,
I was trying to send some data to a com object at 921600 baud rate by means of serial communication. I made following observations
1) with a 32 bit OS, and Matlab R200b, there is no problem to write the data to the serial port and the communication wo >> more

Original post by Titas Bera
Last post by Titas Bera - 22 Oct 2014

Subject:


Hi.

I want to make a big matrix (13000000*26).
The value of each element is one of three values??: 0.91, 0.85, and 0.78.
(matrix don't have any specific pattern)

so I have to select single class but it take 4 bytes for any element, While the floating-p >> more

Original post by night88
Last post by Bruno Luong - 22 Oct 2014 - 3 replies

Subject:


Hi

I am trying to compute the eigenvalues for my PDE model. I can compute the solution using this solver. But can I compute the eigenvalues associated with the solution using this solver?

Here is the code that I use to compute the solution of PDE:
---- >> more

Original post by Zuhair
Last post by Zuhair - 22 Oct 2014

Subject:


Hi,
I am trying to write a Mex routine that allows me to calculate the distance between two points in space using the equation:
if A(x1,y1,z1) and B(x2,y2,z2) then the distance:
 
D = sqrt ( (x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2 )

my cod >> more

Original post by Hazem
Last post by Hazem - 22 Oct 2014 - 4 replies

Subject:


Hello!

I have to solve a system of non linear equalities and inequalities. First I used fsolve, but it only works with non linear equalities. So I found that to include also inequalities I should use fmincon.

My system depends on the unknown vector "a" >> more

Original post by Marty
Last post by Marty - 22 Oct 2014 - 20 replies

Subject:


Hello all, I am a beginner to matlab and I am having issues with a code. The code is supposed to read all images in one folder and then write the images into a different folder. I am having issues with sprintf and issues with the imwrite function. Please >> more

Original post by Bryce
Last post by Bryce - 22 Oct 2014

Subject:


I have a matrix a=[1 2 3 4; 2 3 4 5; 7 8 9 10]
 
I am interested in finding the product of the first 2 coloumns of 'a' and store it as a first col in a new matrix c and product of 3rd 4th col of 'a' will be the 2nd col in c
 
For example in this case, i >> more

Original post by Manasa Gudimella
Last post by Bruno Luong - 22 Oct 2014 - 1 reply

Subject:


Hello,

I am having a issue using cell2dataset. Here is a sample of the data in the format of a cell array:

TempData =

    [ 0] '10002051' [ 3515] '' [NaN]
    [ 0] '10002052' [ 1281] '' [NaN]
    [ 0] '10002053' [ 1173 >> more

Original post by Kevin Ellis
Last post by Peter Perkins - 22 Oct 2014 - 1 reply

Subject:


Hello everyone,

for some days I am trying to find a useful way how to plot a bigger amount of data. I have XY map vs time data (from Raman), which I already managed to converted to a 32x5x69 matrix. Now, is there a way to contour(f) plot all XY (32x5) ma >> more

Original post by Chris
Last post by Chris - 22 Oct 2014

Subject:


can anyone help me!
I have an object, and I separated the boundary of this object.
Then I wanna find 9 points on this boundary, but it isn't like my expectation.
Can anyone help me find 9 points on this boundary that it is the same with my object!

Thank >> more

Original post by Manh Cuong Bui
Last post by Manh Cuong Bui - 22 Oct 2014

Subject:


Hey people,

I tried out 2014b today (Linux version), having high hopes for the new graphics engine. Quick initial impressions aren't great. Good thing: the plots look better on screen. Bad thing: it's deathly slowly for even moderately complicated line p >> more

Original post by Rob Campbell
Last post by Steven Lord - 22 Oct 2014 - 21 replies

Subject:


I want to import a column with positive and negative values from xls to matlab and plot it. However, matlab plots all the values as positive. How can I solve this problem? Thanks!

Original post by Darina
Last post by Darina - 22 Oct 2014 - 1 reply

Subject:


hi.
I have to compute a gradient magnitudes for a 3-D image.

for example in 2-D image :

                                        h = fspecial ( 'sobel' )

                               diff = abs ( imfilter(Image, h, 'replicate') )

how can construct a >> more

Original post by night88
Last post by night88 - 22 Oct 2014

Subject:


Hi. I am having trouble with the fsolve function. When I do examples using the fsolve function that are provided on the mathworks, I dont have any issues when the program is run. I am looking for a vector s returned back that will minimize the nonlinear s >> more

Original post by cassie
Last post by Alan_Weiss - 22 Oct 2014 - 3 replies

Subject:


Hi All
I am receiving data from ports using UDP and fread
I am converting single array to byte and sending it to matlab
I wonder how to convert that byte array to single vector .
Thanku for any help

Original post by Huzaifa Mir
Last post by Bruno Luong - 22 Oct 2014 - 1 reply

Subject:


Hello,

I am trying to make a cam component in simscape.
A cam has a fixed relation between the input shaft angle (phi_in)
and the output shaft angle (phi_out). It can be regarded as a sort of variable ratio transmission,
where the transmission ratio is f >> more

Original post by Diederik
Last post by Diederik - 22 Oct 2014

Subject:


hi

i'm trying to run mexopencv on matlab r2012b and ubuntu 14.04 , i was able to compile mex without problems but i cant use mex functions

for example i tried running the following code

resized_image = cv.resize(input_image, resize_factor);

and got >> more

Original post by Pedro
Last post by Pedro - 22 Oct 2014

Subject:


Dear All,

Please help me to solve my computing time problem which it's cumulative OR between two vectors (vector length is 300 int. element). I have binary matrix 100x300 and I search about sequence order of rows to get vector of all ones. my lines are >> more

Original post by Mohamed
Last post by Mohamed - 22 Oct 2014 - 5 replies

Subject:


HI, I had a problem with GUI callback.
I did a very large GUI. Currently I am sorting my m-file code. I found
a lot of unused callback which I can't delete them.(GUI will not work
if I delete them). This callback(including CreateFcn) is for my
deleted GUI >> more

Original post by zwlovelxl@msn.com
Last post by Fluvio Lobo - 22 Oct 2014 - 6 replies

Post A New Message 1-25 of 446 || Next >> 
rssMost Recent Posts Feed

Contact us