Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
I had fwrite 2 files, X.mat and Y.mat. I would like to do a code to check whether this 2 files are exactly the same content or not ( both files are same content inside, but using different codes to do it). I am actually wanted to check both of my codes whether can produce the same result or not...
I have wrote a write file to key in my data (binary and ASCII). Here is my matlab code:-
fid = fopen('data.mat', 'wb');
value = 555
WriteBinary = typecast(uint16(value),'uint16');
b = fwrite(fid, WriteBinary, 'uint16');
value = 10
WriteBinary = typecast(uint8(value),'uint8');
I have developed a fwrite file to save my data. But I dunno how to read it by using fread function. Can any advise?
Here is my code:-
fid = fopen('CEOS.mat', 'wb');
Value = 555;
x = Value
WriteBinary = typecast(uint16(x),'uint16');
b = fwrite(fid, WriteBinary, 'uint16')...
I am trying to write a matlab code to save all my parameters into one .mat file.
My parametera, for example:
a = 2
b = 1
c = 1.3
d = 99
Q1: I tried to use fwrite, but have no idea how to do continue.
fid = fopen('parameter.mat', 'wb'); <----create .mat file to be written
Thank for your advise. I read thru the parfor documents, but I do not understand how to operate, that's why I came here to ask if any help/example could show me.
Can you give me further explaination? PLEASE!!!!!!!
THANK A LOT!!
I am currently doing my real time signal processing by using Matlab.
The time elapsed are huge, which is ~6sec. I wish to implement my system into parallel processing for those FOR LOOP in order to improve my time comsumtion. I tried the very simple option as below before my loops:-
I am doing a difference angle calculation for 4 points in matlab.
For 2 points, my code will be
But if for 4 vectors, how to find the differences by using above method?
Re: SPI bus application
I understand SPI how to function, but i dun really know about its application on AUDIO devices.
Can anyone explain to me how SPI apply in our daily goods?
WHy there are diff type of clock polarity and phase?