Réponse apportée
How can I produce colours to distinguish between points in a plot?
Sure, you can define colors through their (normalized) RGB values, e.g. [ 0 0 0 ] is black, [1 1 1] is white, and then you can c...

plus de 11 ans il y a | 1

Réponse apportée
3d matrix problem index
Hi I'm not familiar with the output from snapshot, but concerning 3D matrices (or even higher dimensions), indexing works the...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Replacing NaN from doubles in a cell array with blank
What exactly do you mean by "replacing with blanks"? Do you want to delete the whole row? or replace by 0? Your matrix consists ...

plus de 11 ans il y a | 0

Réponse apportée
Can anyone tell me how to implement these timevarying state space equations in matlab
I mean, that would certainly work. simply replace every instance of "t" by "mod(t,60/HR)" when calling ode_sys, so dx = @(...

plus de 11 ans il y a | 0

Réponse apportée
Passing arguments to varargin
Thanks for your help, I wish I could accept both answers. The inputparser looks really useful if each input needs to fulfil a...

plus de 11 ans il y a | 0

Question


Passing arguments to varargin
Hi Aesthetic detail: I have a function using several parameters. These parameters have default values, but can be given as...

plus de 11 ans il y a | 3 réponses | 1

3

réponses

Réponse apportée
Matlab 2014a not working in OS X Yosemite
See: http://www.mathworks.com/matlabcentral/answers/159016

plus de 11 ans il y a | 0

Réponse apportée
Error using mupadmex of syms
In your second to last line Integvector(i)=int(integrand(t,j),j,(i-1)*h,i*h); the left side is a double vector because y...

plus de 11 ans il y a | 0

Réponse apportée
Animating a sine wave movie
Something like that? (reduced the number of frames) clear all clc close all a = -1; z = 0:pi/100:2*pi; y...

plus de 11 ans il y a | 3

Réponse apportée
eigs function: incorrect eigenvectors
One thing to notice is that eigs orders the eigenvalues (and vectors) in descending order, while eig has them in ascending order...

plus de 11 ans il y a | 0

Réponse apportée
Plot a tilted looking polygon
Hi You could simply multiply your points with a rotation matrix, e.g. phi = pi/6; R = [ cos(phi) sin(phi) 0 ; -sin(ph...

plus de 11 ans il y a | 0

Réponse apportée
Looping Through Matrix indexing
Hi Since you want to compute Vc for each element, you need to use element-wise operations, meaning you have to add a dot "." in...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
Update multiple YData on plot without losing focus
where do you get your data from? In general, what I would do is the following, if you want to plot your three sets of data into...

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
Error: Inner Matrix dimensions must agree
First things first... please try to display your question in a more accessible form. 1. Use the Code {} button to insert cod...

plus de 11 ans il y a | 1

Réponse apportée
Can anyone tell me how to implement these timevarying state space equations in matlab
I would use one of the ode functions, e.g. ode45. You can then define an arbitrarily complex, nonlinear, time-varying, etc. syst...

plus de 11 ans il y a | 2

| A accepté

Réponse apportée
using ODE45 when parameters in my function change in time?
Hi Cristina It depends a bit on how your torque and force trajectories are defined, but the easiest way in my opinion: If to...

plus de 11 ans il y a | 0

| A accepté

Question


CVX on Machine with Dual boot (Windows/Linux)
Hi I am using matlab on both windows 7 and Linux. They are installed on separate partitions, but the MATLAB folder with my fi...

plus de 11 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
I have a function returning a 3x1 vector. I now want to plot three graphs for these three outputs.
Hi Maybe I'm missing something, but you want to run the function for each value of linspace(5,10) and plot them? Then that's ...

plus de 11 ans il y a | 0

| A accepté

Question


matlabFunction: struct as parameters or automated text-replacement
Hi! My project simulates a mechanical model with a few parameters (length, mass, inertia matrix, etc.), which I have saved in...

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

0

réponse