0 answers

Find zeros of function with no y

Use Matlab fzero function to find the zeros of the following functions in the given domain. e^(0.5x)= x-1 on[0,3] sin(x)=3x/2 on[-pi,2pi] I literally have no idea how to do this, are you suppose …

1 answer

How to manually output publishing content from a variable

When using the Publish feature of MATLAB, it typically publishes only what comes after the % signs or the function output. However, is there any command to take a variable and splice its value into …

0 answers

while loop to check status end in MATLAB

I'm trying the following loop to get the status return , and recall the command cmd until status=0 but this is not working as I'm expecting it what do you think about the follwoing code : ...

0 answers

Inverting bitmap image turns the image black. But inconsistently

I am trying to negate a bitmap image with some code written in C. When I run the code for the Lena image (let me call it LenaImage1) the first time I get a black image (LenaImage2). When I run the …

1 answer

Matlab will not use flat shading, defaults to faceted

Hopefully a simple question: I have a matlab script that uses the contourfm function. I have explicitly told it to use flat shading, however it keeps defaulting back to faceted shading. Any ideas why? …

0 answers

Matlab saving cell array to text file

After searching mathworks' website and here too I managed to find the code that is SUPPOSED to work for saving cell data to a text file... but every variation I found doesn't work. Here's my current …

0 answers

Preprocessing methods to apply sobel edges detection

I am currently writing a segmentation algorithm in Matlab based on the distance transform and watershed lines to analyse my data (Cell Microscopy, see picture 1 for the raw image). The part of ...

2 answers

Quadruple Integral Using Nested Integral2 in Matlab

I am trying to solve a problem of the following form: f=@(x,y,z,w) x.*y.*z.*w; % A complicated black box function a=1;b=1;c=1;d=1; % Integration limits ...

3 answers

How to plot my data without zeros in input

I have some big data arrays witch contain some 0 0 rows I want to print my plot without them, how? The arrays look like (its part or (100000:2:2:N) array so cant just del those rows) A(:,:,1,5): …

3 answers | 31 mins ago by JohnnyF on Stack Overflow stackoverflow.com
2 answers

Segmentation fault when printing images with transparency and -nodisplay option

I'm running MATLAB 2012a on Linux's command line with -nodisplay option. When I run my code I get a segmentation fault. The following piece of code reproduce my error. The error is produced when the …

0 answers

Subscripted assignment dimension mismatch in double loop

need help with this error. nc=2; kk=1; for f=1:nc for j=1:n SS=2*j-1; for s=1:SS-1 totalI=totalI+tI; end tin=totalI+tI; RI(kk,:)=RI+P(j,n)*tin; %error in this line …

52 mins ago by Nor H on Stack Overflow stackoverflow.com
3 answers

Problems including MATLAB “engine.h” for C++ code

I am trying to run the example code from the MATLAB Doc, but when I try to build the project in Visual Studio I get this error fatal error C1083: Cannot open include file: 'engine.h': No such file or …

2 answers

creating mean (event logged) time course from longer time course in matlab

I have a vector (which is basically a timecourse). t=rand(1,20)' I now want to extract a mean timecourse of the bins 1 to 3, 4 to 6, 7 to 9 and so on. I could do this in a step by step way using …

2 answers | 1 hour ago by biebobob on Stack Overflow stackoverflow.com
1 answer

Error compiling metismex in matlab r2013

I have downloaded and succesfully compiled metis 5.0.2 in a win7 x64 pc and trying to compile metismex. I compiled metis with Visual Studio 11 (2012) and using the same compiler from within matlab. …

1 answers | 1 hour ago by Est on Stack Overflow stackoverflow.com
4 answers

determine the frequency of a number if a simulation

I have the following function: I have to generate 2000 random numbers from this function and then make a histogram. then I have to determine how many of them is greater that 2 with P(X>2). this …

4 answers | 1 hour ago by S. N on Stack Overflow stackoverflow.com
1 answer

Matlab Taylor series for e^x transforming to 1/e^x?

I'm trying to make the code below work by modifying it so that e^-x will work, essentially I'm trying to modify it so that e^-x is 1/e^x I'm really not sure how to do that..Here is my code.. ...

1 answers | 1 hour ago by Megan on Stack Overflow stackoverflow.com
2 answers

Calculating the essential matrix from two sets of corresponding points

I'm trying to reconstruct a 3d image from two calibrated cameras. One of the steps involved is to calculate the 3x3 essential matrix E, from two sets of corresponding (homogeneous) points (more than …

0 answers

Replicating a 3D plot from MATLAB in Python

I am new to Python, though am an experienced in MATLAB user. I have been playing with Matplotlib have been able to do most things with it, but have not been able to get 3D plotting working. As a ...

1 answer

Save cropped figure in Matlab

I have opened a highly complex .fig figure from file in matlab with openfig. After this I have cropped the figure with axis([X1, X2, Y1, Y2]) I now want save the cropped figure so that it is of a …

1 answers | 2 hours ago by fixitinthemix on Stack Overflow stackoverflow.com
1 answer

How to plot theta vector line for classification algorithm (MATLAB)

After a logistic regression function, I get a theta vector like [-0.34, -4.5, 0.5]. How can I use this to draw the boundary line in the graph?

0 answers

how can i correctly plot phase spectrum of fourier series with matlab?

I've made a rectangular pulse x, with fundamental period 2seconds, to fourier transform t=-2:0.01:2; dt=t(2)-t(1); %increment of time fs=1/dt % sampling rate n=length(t) %number of samples ...

1 answer

How do I define a class in MATLAB that uses methods defined in separate files (in an @-folder)?

I would like to define a class in one file, and its methods in several other files. Apparently, the way to do this is to create a subfolder named @<ClassName>in the class folder, and to put all …

2 answers

Fuzzy Color Image Segmentation ::Matlab

I'm working on a color image segmentation in HSV color space using Matlab fuzzy toolbox. the goal is to read an RGB image->convert to hsv->use H,S,V values as an input for fuzzy system and then find …

1 answer

MATLAB: Read text file and split it to a multi dimensional cell array

I have a big text file whose format is as follow: M23 I13 C11 D12 A13 K15 I01 L19 D02 O15 I want to read the file into a matrix so that I can process the IDs one by one. Each row is independent. …

1 answers | 4 hours ago by woodylin on Stack Overflow stackoverflow.com
1 answer

What is a good substitute for matlabFunction?

I wrote a small program in MATLAB to compute the Shapley value using the multi-linear extension of a TU game. However, I run into trouble with the Symbolic Math Toolbox of MATLAB. In the program I …

1 answer

Direct 2D FFT from sinogram. Polar to cartesian grid interpolation in Matlab

In the theory of tomography imaging a sinogram is recorderded, which is series of projections at different angles of the sample. Taking FFT of this projections gives a slice in polar coordinates of …

1 answer

Architecture of specific ANN in MATLAB

Can someone check did I guess correct number of neurons in input/hidden/output layer and overall params please. My idea of this ANN: Input neurons : 784 (28x28) Hidden Layers : 1 Size of hidden ...

1 answers | 6 hours ago by Munsta on Stack Overflow stackoverflow.com
2 answers


I'm trying to understand how MINPEAKDISTANCE works. I returned to the documentation, here, but it wasn't very clear how this parameter works. Can you kindly clarify it a bit? Thanks.

2 answers | 6 hours ago by productive on Stack Overflow stackoverflow.com
2 answers

finding out the scaling factors to match two curves with fmincon in matlab

This is a follow up question related to how to find out the scaling factors to match two curves in matlab? I use the following code to figure out the scaling factors to match two curves function err …

2 answers | 6 hours ago by tytamu on Stack Overflow stackoverflow.com
1 answer

Matlab openfig on headless display

I'm running matlab on my local machine and I'm calling the following function from Java (running in a tomcat web server): function df = getFig(file) f = openfig(file,'reuse','invisible'); ...

15 30 50 per page
1 2 3