Réponse apportée
Read all text files in folder (nonsequential)
Based on what you said, if you have all the files in the same folder, you can open the folder in MATLAB and use <http://www.math...

environ 10 ans il y a | 0

Question


Trying to open a .dll file in MATLAB but I'm unable to. The error shown is "undefined function 'simplelw' for input arguments of type 'double'."
Basically, I have this script and my line of code is: output=simplelw(sizex,sizey,seedx,seedy,wghtCoA,wghtCoB,wghtCoC,wgh...

environ 10 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Symbolic derivative of function using diff()
Why don't you just tell diff to take the second derivative immediately? Look under the Higher-Order Derivatives subsection for ...

environ 10 ans il y a | 1

Réponse apportée
Integration of a curve
You can use the <http://www.mathworks.com/help/matlab/ref/trapz.html trapz> function to give you the area under the curve. In th...

environ 10 ans il y a | 1

| A accepté

Réponse apportée
From Acceleration to Displacement Trapz Function
Consider using the <http://www.mathworks.com/help/matlab/ref/cumtrapz.html cumtrapz> function to find the displacement. % D...

environ 10 ans il y a | 0

Réponse apportée
Undefined function 'shortestPath' for input arguments of type 'double'.
You don't have the matrix (I assume) shortestPath or N_cities defined anywhere in your code. So it's either a global variable or...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
How can I relate points of different matrices ?
If you know exactly what you want to switch, follow this example: A=[1 1; 2 2; 3 3] And you want to switch row 1 with ro...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
How to find the indices of element occuring once in a vector?
If you're looking specifically for the value of -1, you can use the following: index1=find(A==-1)

environ 10 ans il y a | 1

Réponse apportée
Export data from matlab to excel file
You can use the <http://www.mathworks.com/help/matlab/ref/xlswrite.html xlswrite> built-in MATLAB function and specify the file ...

environ 10 ans il y a | 0

Réponse apportée
how can i show the result parameters in workspace?
You can do as Geoff mentioned in the comments. You can also tell the m file program to display the required values using <http:/...

environ 10 ans il y a | 0

Réponse apportée
How to save multiple images in a loop without over writing the previous ones?
Have you considered creating a 3D matrix with pages? Something like initializing a loop variable for each image? For example: ...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Save data from a for loop in the same file
I know there is a way to do it, but my brain is failing me at the moment. What you can do instead is hold all the T values in a ...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Filter out negative values
You can try using the <http://www.mathworks.com/help/curvefit/subplus.html subplus> function. For example, you would use ...

environ 10 ans il y a | 1

Réponse apportée
view full matrix and trough columns
I'm not sure if you can make it scroll through the screen, but you can adjust the font size on your console so that all the numb...

environ 10 ans il y a | 0

Réponse apportée
How to store values from a loop?
There are two ways to do this, the following is the less efficient way x=[]; if true for y=2:0.1:10 x=[x; fzero(@(m) Y(m...

plus de 10 ans il y a | 2

Réponse apportée
64-bit MATLAB student version
It seems that the only available version is 32-bit based on this <http://www.mathworks.com/matlabcentral/answers/94005 post>

plus de 10 ans il y a | 0

Réponse apportée
How to show exact answers in MATLAB
Why don't you try an approach where you use square the matrix to find out what the numbers are? For example MatrixSquare...

presque 11 ans il y a | 1

Réponse apportée
how to write a program to double integrate sin(omega*t+epsilon)
Look at the <http://www.mathworks.com/help/matlab/ref/integral2.html integral2> function

presque 11 ans il y a | 0

Réponse apportée
Going up from negative in for loop counter
When you plot, you`re only plotting the last point because the variable y is inside the for loop (and is not a matrix). Other th...

presque 11 ans il y a | 0

Réponse apportée
how can i display and customize axis values in imshow image
axis on In the command window should give you the result.

presque 11 ans il y a | 2

Question


What happens if a MATLAB executable (GUI for example) runs into an erro while running?
Hello, If I were to compile an executable (GUI for example) which asks the user to load a file, then, when processing the dat...

presque 11 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Undefined function 'curveintersect' for input arguments of type 'double'.
curveintersect is not a built-in function in MATLAB, so you cannot use it unless you have made a function file yourself. Perh...

environ 11 ans il y a | 0

Réponse apportée
Changing a specific value in a matrix
Let your data be in matrix A, and x,y are the indices where you want to change the value A(x,y)=2 %2 is just a random numbe...

environ 11 ans il y a | 1

| A accepté

Réponse apportée
starting MATLAB and not experienced in programming
I would suggest starting with these: http://www.mathworks.com/help/pdf_doc/allpdf.html

environ 11 ans il y a | 0

Réponse apportée
Save While-loop to vector
Change it to the following: VelocityVector=[]; while Velocity2>=-20 Velocity2=hastighet(acceleration(0,m,g),t,v0,t0); ...

environ 11 ans il y a | 4

| A accepté

Réponse apportée
Non continous range random number generation
If you have the statistics toolbox, you can use the following idea: randsample([2 3 5 6 7 8 9 10], 5, 1) This produces 5...

environ 11 ans il y a | 0

Réponse apportée
How can i plot peaks?
MaxValue=max(d); IndexMaxValue=find(d==MaxValue) % Creates a red circle where the max is. plot(handles.axes1, omega.*t(Inde...

environ 11 ans il y a | 0

Réponse apportée
finding the string from the text file
A=fileread(filename) B=strfind(A, WordString) I would suggest looking at the <http://www.mathworks.com/help/matlab/ref/str...

plus de 11 ans il y a | 1

Réponse apportée
I am unable to store values for every iteration, values are overwritten in each iteration.
This is only one of *many* ways (I would suggest pre-locating but I need more of the code) *Before *the for loop, add this line...

plus de 11 ans il y a | 1

Réponse apportée
How can I create a matrix using nested loop functions?
With making the least amount of changes to your code, add this line before the for loop NC=[]; And change the NC=[X(i) Y...

plus de 11 ans il y a | 1

| A accepté

Charger plus