I have a system of equations contained in an anonymous equation. Instead of defining all of the equations when i create the function, I would like to add one in each step of a for loop. Is this possible?
...
Hello,
I am trying to import a large number of files into Matlab for processing. A typical file would look like this:
mass intensity
350.85777 238
350.89252 3094
350.98688 2762
351.87899 468
352.17712 569
352.28449 426
Some text and numbers here, describing the experimental s...
Hi,
I am experiencing problems when I compare results from different runs of my Matlab software with the same input. To narrow the problem, I did the following:
* save all relevant variables using Matlab's save() method
* call a method which calculates something
* save all relevant output variables again using save()
Without changing ...
I have a Hokuyo USB LADAR/LIDAR. I have problem with interfacing or connecting it to MATLAB/Simulink, such that I can do all the processing in those software packages.
I have already asked Hokuyo. They only provide C++ program interface (sample programming guide and libraries). How do I interface this to MATLAB/Simulink?
...
for i=1:length(wav)
if (rem(i,6) ~= 0)
wav(i) = 0;
end
end
The 6th value in the vector will be set to 0 (incorrect), but all the multiples of 6 will remain (which is correct). Strangely, this works correctly if I were to make it rem(i,7) or rem(i,4). Is this a machine precision error? If so, how do I go about fixing thi...
How do I extract the frames from a yuv 420 video? Let's say i want to store them as still images. How?
...
I'm looking for an equivalent of for example DOS's dir |more which lists the data, until one page is complete, then waits for a key to be pressed until showing another. Is there an equivalent for MATLAB's help system.
I know I could simply scroll back, but this would be so much more convenient, expecially if one uses help system often....
I have generated a java code from matlab and while executing the java code in Eclipse it is using mclmcrrt711.dll file in matlab compiler runtime, when i try to execute the java code in another machine which is not having matlab or matlab compiler it is giving me the error:"java.lang.UnsatisfiedLinkError: Failed to find the library mclmc...
Guys I want to convert an avi file into yuv 420 video clip. Is there any method to do that? thx!
...
how to convert image pixel to image coordinate?
...
I already have my xy graph using the line graph. What troubles me is how can I ask matlab to give me the value of y if I give the value of x. That is, the corresponding value of y when I give x in the line I have in the graph.
...
I have a variable in the MATLAB workspace and I want to pass this variable to a function in my GUI.
How do I achieve this task?
...
I need to plot a dome (or half sphere) that have different radii. I was told how to plot the shpere on a previous question:
[x,y,z] = sphere; %# Makes a 21-by-21 point sphere
x = x(11:end,:); %# Keep top 11 x points
y = y(11:end,:); %# Keep top 11 y points
z = z(11:end,:); %# Keep top 11 z points
r = 3; ...
I have a txt file as
20100318,1630,17.3600,17.3700,17.2900,17.3000,150408
20100318,1700,17.3000,17.3200,17.2700,17.3200,69629
20100318,1730,17.3100,17.3100,17.3100,17.3200,0
20100319,900,17.4000,17.5600,17.3500,17.5100,460691
20100319,930,17.5100,17.5400,17.4200,17.4200,143917
where first and second columns are Date and Time with comm...
I have a text file that have a string of 3 numbers that I need to read into MATLAB.
For Example:
#######################
#
#
# Text Text Text
#
#
#######################
Blah blah blah = ####
Blah blah blah = ####
Blah blah blah = ####
Blah blah blah = ####
Blah blah blah = ####
Blah blah blah = ####
I_NEED_THIS_STRING = 1234.5 ...
I want to creat a GUI using the GUIDE tool in MATLAB. Anyone know of a good tutorial (preferably not a video...can't watch).
THanks
...
As part of the Econometrics Toolbox, how can i apply the AIC criterion to time series data using MATLAB.
Is there any way without using GARCH functions such as garchfit.
If the only way to AIC is to apply GARCH functions, what is meant by number of parameters??
...
I am creating a .dat file with headers and data in Matlab like this:
%# Define the name of the file where data is to be written
dataName = 'sampledata_models_poro_reference_truth';
%# open the file
fid = fopen('sampledata_models_poro_reference_truth.dat','w');
%# start writing. First line: title
fprintf(fid,'%s\n',dataName); %# don't ...
I have to spread rice grains on a sheet and then find the average length of the rice grains spread. Any ideas how to do this in MATLAB?
...
How can you read from an array/matrix without first assigning it to a variable?
For example, if I want to read the middle value from magic(5), I can do so like this:
M = magic(5)
value = M(3, 3)
to get value == 13. I'd like to be able to do something like one of these
value = magic(5)(3,3)
value = (magic(5))(3,3)
to dispense with ...