Hallo,
I'm asking the same question of some days ago but now i would like to add at the question one more step.
Below the code for the first step:
t = -20:0.1:20;
plot3(zeros(size(t)),t,-t.^2);
hold on i = 1;
h = plot3([0 0],[0 t(i)],[0 -t(i)^2],'r');
for(i=2:length(t))
set(h,'xdata',[0 0],'ydata',[0 t(i)],'zdata',[0 -t(i)^2]);
...
Hi,there are 2 formulae which i am finding it difficult to represent in Matlab. Let there be two RGB images A and B of same size with m,n representing rows and column and the third dimension d=3. The formula1 basically calculates the rate of change of pixels if A be the original image and B be the distorted version. Formula2 calculates t...
I have a vector with 100 elements. I have another vector with index positions of elements I want to remove from this vector.
How do I do this?
...
I am currently trying to implement basic speech recognition in AS3. I need this to be completely client side, as such I can't access powerful server-side speech recognition tools. The idea I had was to detect syllables in a word, and use that to determine the word spoken. I am aware that this will grealty limit the capacities for recogni...
I have been using MATLAB for my work, but I have started learning Python lately. I employ statistical analysis, more precisely geostatistics, in my work. I was wanting to ask, from your perspectives, which one among the two languages is good for statistical analysis? What are the pros and cons, other than accessibility, for each?
...
I have a few inequalities regarding {x,y}, that satisfies the following equations:
x>=0
y>=0
f(x,y)=x^2+y^2>=100
g(x,y)=x^2+y^2<=200
Note that x and y must be integer.
Graphically it can be represented as follows, the blue region is the region that satisfies the above inequalities:
The question now is, is there any function in Mat...
I'm writing code in which I use MATLAB's fill command to plot 2D shapes. I can specify the fill color of the shape. However, the border line color is always black. I want the border line color the same as the fill color. How can I also specify the border line color?
...
I am attempting to read an H264 AVI file on OSX with Matlab, but it appears that the video is corrupted. When I display the frame it appears that the image is segmented by vertical grey lines and I can see a segmented and faded version of the actual image data repeated 3 times within the same frame. On my windows box I am able to read in...
Consider the function f with branched definition
f(x)= x − 2x^2/3 for 0 ≤ x ≤ 1;
x − 2 − cos(πx) for 1 < x ≤ 3.
Write an anonymous function for f and Plot the graph of the function over the interval to allow you to estimate its zeros.
Use these estimates in the FZERO command to find the positive zeros (that is, the posi...
Please can anyone tell me a method to read header of multiple dicom(mri) images
and store them in a structure
i really need to do this in my project
...
Recently I profiled some MATLAB code and I was shocked to see the following in a heavily used function:
5.76 198694 58 persistent CONSTANTS;
3.44 198694 59 if isempty(CONSTANTS) % initialize CONSTANTS
In other words, MATLAB spent about 9 seconds, over 198694 function calls, declaring the persistent CONSTANTS and checking if it ...
Good afternoon!
I have to process a large sparse matrix whose size is 6004*17842 (doc*terms). The function find() has been tried to get its rows, cols and values and the result has been save in ascii form. But the terms are not sorted in each document. Could anyone suggest me a way to sort the matrix and export the sorted result please?...
I'd like to use pdf versions of my matlab plots in a latex document. I'm saving the figures using the "saveas" command with the pdf option but I get huge white space around my plots in the pdf files. Is this normal? How can I get rid of it? Automatically, of course, since I have "a lot" of plots.
Thanks.
...
Hi all,
I'm trying to compile c shared library from matlab. my matlab code uses a lot of the image processing functionality. So, compiling goes fine, but when i call the dll from my application, i get messages like, "Undefined function or method 'XYZ' for input arguments of type double". I have verified my arguments are ok -- it's not...
I am currently developing an image processing application for android mobile phones and I would like to know what libraries would you guys recommend me based on your experience.
I have heard of JJIL but I do not know how good it might be for what i want to achieve.
I need something that implements the basic image processing functions fro...
I'm trying to plot out readings from a device I'm testing, I only need one legend per figure, and there are 3 graphs per figure.
I'm giving the first graph a legend with the 'BestOutside' flag. Unfortunately, when i plot the other two graphs they don't line up with the first graph, and partially hide the legend.
How do I make sure the ...
I want to read weather data from Weather Unground into Matlab directly. For a given site you can select to output the data in comma delimited format. How can I write a Matlab function that will read in the information into Matlab? I don't want to download the file but rather read it in from the URL.
For example, here is a URL of some d...
Hello! I have a homework problem, I think I did it correctly but need to make sure 100%. Can anyone check for me, before I hand it in?
Thank you.
Question:
Plot the function given by f (x) = 2 sin(2x) − 3 cos(x/2) over the in-
terval [0, 2π] using steps of length .001 (How?). Use the commands max and min to estimate the maximum and mi...
Hi,
I am looking for an easy and not expensive solution to work on a large amount of records coming from sensors and save in a MYSQL database.
I would like to do statistics calculation on these records and other heavy calculation.
this tool that I am looking for will be used by researchers or engineers who are expert in math and stati...
Hello,
I've built a Matlab/Simulink model that I'm using to simulate the performance of an underwater robotic vehicle that uses acoustics for various key navigation and localisation functions.
Since the characteristics of the ocean change with seasonality and geolocation, I would like this data to be dynamically loaded into the model f...