Réponse apportée
Matlab newbie - what is wrong with this function?
When you select multiple files, the output in Filename is a cell array, not a string, so it won't work in strcat the way you exp...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
Writing a function that returns the 5 coordinates to draw a square?
The nice thing about Matlab is that, for simple equations, the correct syntax looks almost identical to how you would write the ...

presque 13 ans il y a | 0

Réponse apportée
Plot 3d, z = f(x,y)
If you have the Curve Fitting Toolbox, doc sfit doc sftool

presque 13 ans il y a | 0

Réponse apportée
Beginner Question -- IF loop (code at beginning of post)
For the input issue, use the option 's' to convert the input to string at the prompt, and then use str2double() to convert it to...

presque 13 ans il y a | 1

| A accepté

Réponse apportée
unique rows of matrix
You can easily perform the task using: A = unique( B(:,[1 3]), 'rows'); But of course, this forms the intermediate mat...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Can anybody help me with what this kind of thing means In MatLab
Each of the idx_rX... variables are the output of find, and are indicating the indices of where the expression inside the parent...

presque 13 ans il y a | 0

Réponse apportée
Getting mouse coordinates with x and y attached to them and displaying them in excel.
Convert x and y to cell arrays with the desired leading text ('x' or 'y'): xs = [ repmat('x', size(x)), num2str(x)]; ys ...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
matrix operation make matrix
A = reshape(repmat((1:8), 8, 1), 1, []) b = repmat(1:8, 1, 8)

presque 13 ans il y a | 0

Réponse apportée
how can i find out the minimum (x1,y1) and maximum (x2,y2) cordinates of any image in matlab in the form of minimum boundary ractangle ?
First, you will need to threshold the desired region of your image (i.e. the portion for which you want to find the boundary rec...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
finding maximum abs value of four images
No loops necessary: CombinedImages = cat(3, I1, I2, I3, I4) I5 = max(abs(CombinedImages),[],3)

presque 13 ans il y a | 1

| A accepté

Réponse apportée
does an "if does not contain operator" exist
The "if does not contain" operation can be done with ismember, using something like: notPi = ~ismember( user_input, pi) ...

presque 13 ans il y a | 0

Réponse apportée
Syntax to comment/uncomment line(s) of code in a Matlab script
There is no way (at least as far as I am aware) to comment out lines programatically. However, even if you could, this is almost...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Problem with if statments
The error is because you are comparing a vector of (presumably) 1000 elements to another vector of 1000 elements. Thus, when you...

presque 13 ans il y a | 1

Réponse apportée
How do I take the average of a zeros vector without dividing by the unpopulated zeros?
So basically you just want to exclude zeros from your mean? notZero = (handles.vxdata)~=0; handles.speedavg = mean(handl...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
Coincidence detector in Matlab
How about something like this? (I assume all signals are sampled synchronously). edges1 = find(diff(Signal1) > 0); %get ri...

presque 13 ans il y a | 0

| A accepté

Réponse apportée
How to use the If function to find and replace symbols in an equation?
I think you want to use subs() to set the zero terms: a=subs(a, {'A1_' ,'A2_', 'A3_'}, {0,0,0}); You wouldn't be able to...

environ 13 ans il y a | 0

Réponse apportée
How to delete a ROI after having drawn a new one
Probably the most robust way is to save the handles to imrect/impoly and then delete just that object. Something like this: ...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
quick question about string read
Use the functional form of load, i.e. load(a1);

environ 13 ans il y a | 0

Réponse apportée
Evaluating incomplete elliptic integrals in MATLAB
I've used this set of functions in the past to evaluate incomplete elliptic integrals: <http://www.mathworks.com/matlabcentra...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Wanted features for UITABLE and UITREE
It would be nice to be able to update the contents of a single uitable cell without "flicker". As it stands now, it is easy to m...

environ 13 ans il y a | 7

| A accepté

Réponse apportée
Why am I getting a matrix when [I think] I should be getting a vector?
It's because in your second calling of the function [maxV, minV] = myFunction(volume, bins) you are setting the first o...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
License Plate Recognition - need help to improve code.. :)
Hi Michal, You might have more luck thresholding the three color planes (red, green, and blue) separately, rather than thresh...

environ 13 ans il y a | 0

Réponse apportée
Find moving average with filter
Or even easier, go to the "Help" in Matlab, and search "moving average filter". The first or second link (the one entitled "Exam...

environ 13 ans il y a | 1

Réponse apportée
How to save MAtlab output in a file that you can reopen later?
Save your workspace as a *.mat file is easiest. You can use File->Save Workspace As from the menu or using the 'save' command. ...

environ 13 ans il y a | 1

| A accepté

Réponse apportée
Selecting text from a .txt file
Hi Drew, First, you just need to import the data from the file into Matlab. Easy enough: data = dlmread('/path/to/your...

environ 13 ans il y a | 0

Réponse apportée
Need help to save data from getkey into the file by using fprint
Hi Maliheh, Based on what you have specified above, I think this will work: %note that you will need to define the parti...

environ 13 ans il y a | 0

Réponse apportée
How to display minimum vaue of a Surface z-axis.
You can do this using text() function. Something like this: %Xval, Yval, and Zval are your MxN matrices used to make the su...

environ 13 ans il y a | 0

Réponse apportée
problem with reading MRI image (dicom)
Hi D C, It's probably just a display issue. When using imshow, try setting the DisplayRange to autoscale, i.e. imshow(...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
can i do this program in matlab
Hi joy, Your question is a bit unclear. It sounds like you are trying to do two different things: 1) You want to write a new...

environ 13 ans il y a | 0

| A accepté

Réponse apportée
Hello, I am trying to fit some data points with an exponential equation.
Hi Krish, There are a couple of different ways to do this. Do you have the Optimization Toolbox or Curve Fitting Toolbox? If ...

environ 13 ans il y a | 1

Charger plus