matlab questions

matlab questions

  • All Sites

2 answers

Finding a critical point in matrix

I'm attempting to find a critical point in a matrix. The value at index (i,j) should be greater than or equal to all elements in its row, and less than or equal to all elements in its column. Here ...

0 answers

Resolving ODE in Matlab

I'm trying to make a program to solve the following system with ode23: 2y’ + z’–y + 2z = 0 y’ + 3z’ –3y +z = 0 with initial values: y(0) = 1 z(0) = 0 and analytic solution: y= ...

0 answers

How i can find homogeneity and enargy of image block

Suppose i have block of pixels form an image as following 8 5 22 94 63 65 98 52 41 32 65 21 48 59 77 20 14 15 63 52 21 63 77 85 95 how i can find homogeneity and energyof these pixels ...

1 answer

How to integrate a multivariate function in MatLab?

How do I integrate something like (x + y) (or an expression with any number of variables) with respect to just one of the variables, let's say x from 0 to 1, and get a function of the other variable ...

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

Create an adjacency matrix matlab

I apologize for the formatting and what seems like a very easy question. I am new to matlab and this stack exchange. I am attempting to create an adjacency matrix from a few column vectors in matlab. ...

1 answers | 1 hour ago by TheNumber23 on Stack Overflow stackoverflow.com
0 answers

Cross-correlation feature extraction method (for huge dimensionality)

I have a dataset consisting of fMRI images from mices (brain images showing activations). Each image belongs to one class. Each class represents different drug doses applied to the mice. The dataset ...

1 answer

Regarding use of assempde in the following code

I was trying to understand this code. So, I have noted down my understanding in brief and I'll be thankful if anyone could clarify my doubts. [p,e,t] = initmesh('lshapeg'); This will return a 2D ...

0 answers

How to plot and save multiple Matlab figures in a loop without displaying

I have a loop that's producing some data to plot. I tried to apply some of the things suggested in other questions: for i = 1:N set(gcf, 'Visible', 'off'); plot(...); saveas(gcf, ...

2 answers

Reading text file and dealing with numbers

I'm attempting to count the number of letters in a text file, but unfortunately I keep getting stuck if numbers are involved. So far I have been able to deal with letters and symbols, but ...

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

Issue calculating angle

I have the following data: Notice the scale of the data is really small. What I need to do is calculate the angle between each point and the positive y axis, and then do this again but find the angle ...

3 answers

MATLAB polynomial fit selective powers

I have 2 vectors x and y to which I want to fit a polynomial as y = f(x) in MATLAB. I could have used polyfit. However, I want to fit only selective power terms of the polynomial. For example, y = ...

1 answer

MuPAD evaluation of local variables, Sum of row of array

I have discovered a strange behavior in MuPAD version 5.7.0 (MATLAB R2011b), and I would like to know whether this is a bug, and if not so, what I am doing wrong. Ideally, I would also like to know ...

1 answers | 3 hours ago by Douba on Stack Overflow stackoverflow.com
2 answers

Adding extra information to datapoints on a plot

THERE IS THE SOLUTION BELOW! This (x,y) value actually corresponds to a t value, which I want to see on the plot. What can I do? Clearly matlab has the ability to display multiple information in ...

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

GETSNAPSHOT in MATLAB is too slow

I have a code which acquires images from an analog camera using a USB video grabber. The HUGE problem for me is that whenever I use GETSNAPSHOT to get an image, the process takes a few seconds to ...

1 answers | 3 hours ago by Kaya311 on Stack Overflow stackoverflow.com
0 answers

Matlab hypergeom retruns symbolic results after I install Python

I recently found a problem when I use MATLAB. I have used the function "hypergeom" for years and it works well until today I found that it always returns symbolic results, even if all the parameters ...

0 answers

Find indices of vertices by region of DelaunayTri class in MATLAB

I have two vectors of vertices coordinates x and y that I use to generate all possible triangles as follow: dt = DelaunayTri(x,y); Now given any random point, assuming that its coordinates are in the ...

1 answer

How to use MATLAB buildin functions in C#

I want to apply 2D-DCT on the array of data collected from image pixels. tried Accord.Math which is too slow to work with and also values vary from 50 to 100 as compared to matlab generated values ...

1 answers | 3 hours ago by Sameer Azeem on Stack Overflow stackoverflow.com
1 answer

Error in using Lowe's SIFT Matlab program on Mac OS X

I'm trying to use David Lowe's Matlab demo of SIFT in Matlab on my Mac. But I'm constantly getting the error: [image, desc, locations] = sift('book.pgm') /bin/bash: ./sift: cannot execute binary ...

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

Most accepted theory to analyse trend in data series

I have pollutant concentration for long period I want to determine trend. I have read some of the question answers in this blog regarding same . I have few queries. What is most accepted theory to ...

2 answers

Matlab: Save figure with transparent background

I have a plot and am setting the background to transparent by: set(gcf, 'Color', 'None'); set(gca, 'Color', 'None'); When I try to save the image (from the viewer), I save as a .png, but it saves ...

2 answers | 5 hours ago by Aly on Stack Overflow stackoverflow.com
0 answers

matlab differential equation

I have the following differential equation which I'm not able to solve. We know the following about the equation: D(r) is a third grade polynom D'(1)=D'(2)=0 D(2)=2D(1) u(1)=450 u'(2)=-K * ...

0 answers

how to export .tbx to matlab workspace ? where i can use it to process multispectral image

i am having a tool model and i want to use this model on an multispectral image in matlab export of .tbx in matlab working.(remember the image is just for an example to explain my problem.)

0 answers

Trabalho de segmentação em MATLAB

Estou a fazer um trabalho cujo objetivo é a segmentação de imagens dos pulmões e da traqueia. Já binarizei a imagem e gostaria de saber quais são os próximos passos.

1 answer

How to make a substitution in Lambda Calculus?

I would like to know how to make the following lambda substitution: Let: M = λxy.x (λx.x)(λy.x y) Calculate the substitution: M[x := y xλz.z] Do you know some way to make such substitution in ...

0 answers

Writing results to binary file in MATLAB

I'm attempting to write the results of my code into a binary code. I have a student's version of MATLAB so I'm not sure how to run the through the debugging process. In any case, I'm not sure if ...

2 answers

Storing non-zero integers from one matrix into another

I'm attempting to create a loop that reads through a matrix (A) and stores the non-zero values into a new matrix (w). I'm not sure what is wrong with my code. function [d,w] = matrix_check(A) [nrow ...

1 answer

How to set x and y values for Bar3 plotting in Matlab?

I have a matrix for example A=rand(60,60). I want to set the x-axis and y-axis value with step size: 1:2:119 in 3d bar (matlab bar3). I already tried to make it but it doesn't work for large matrix. ...

1 answers | 6 hours ago by Delwar Bhuiyan on Stack Overflow stackoverflow.com
1 answer

How to generate random fixed point number in matlab

If I want to generate a random series of fixed point number after decimal and also before decimal for example 0.112,1.110,1.520,-2.540,-0.001 etc in given range suppose [-4,4]. Is there any ...

1 answers | 7 hours ago by Shreyas Patel on Stack Overflow stackoverflow.com
1 answer

Creating a function that is always visible, regardless of userpath?

I want to write a function that can always be called, no matter what the current userpath is. I thought I might make a new directory called "custom" within matlabroot/toolbox/, and then place any ...

1 answers | 7 hours ago by user31360 on Stack Overflow stackoverflow.com
1 answer

SURF feature extraction on a dense grid with MATLAB

I would like to use SURF (speed-up robust) features to implement a classification system based on a bag-of-visual-words approach. I have read some papers about the use of a dense grid to extract these ...

1 answers | 7 hours ago by mad on Stack Overflow stackoverflow.com
15 30 50 per page
1 2 3