Réponse apportée
How to set an array in matlab?
I'm not really sure what your question is. Are you trying to do this? clear all A1=input('What is the value of A ','s')...

presque 12 ans il y a | 0

Réponse apportée
Hi , i installed matlab 2013b after dspace controldesk 3.5 but the dspace not defined in simulink.please any help to solved this problem without reinstall dspace.
Please review the compatibility tables for your versions of MATLAB and dSPACE carefully. For MATLAB 2013b you will need dSPAC...

presque 12 ans il y a | 0

Réponse apportée
calculate the integral of sin of x
No, the integral of sin(x) is -cos(x)+C. Now you must solve for C. If you double click your integrator you will see that y...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
how can I link the simscape tools with the commonaly used blocks in simulink in matlab.
You need to use the Simulink to Physical Signal converter blocks. <http://www.mathworks.com/help/physmod/simscape/ref/simulin...

presque 12 ans il y a | 0

Réponse apportée
How to find the mean of data contained in a column of a table?
a=[1 11; 2 22; 3 33; 4 44; 5 55] b=mean(a) b = 3 33

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How can I avoid Algebraic loops In these equations
If you are smart about it, you may be able to avoid a memory block. Depending on the properties of your numbers (for example, i...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Solving dynamic system of equations with parameters
Due to the way _solve_ choses the variables to solve for ( _symvar_ ), you may not need to specify the variables at all. For ex...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
how can write sigma in matlab???????
If you are saying you want to put sigma, the greek letter σ, as a variable in a formula, you cannot. You must use english lette...

presque 12 ans il y a | 0

Réponse apportée
I have modified demo power_wind_dfig model . As i remove fault no prob. Bt as i remove 2 MVA plant or DFIG protection block , Initail State vector X0 must be a real vector of length xx error comes. With every modification xx changes. Pls help
The initial state vector X0 contains the states of all the components in the model to allow the simulation to start from a "stab...

presque 12 ans il y a | 0

Réponse apportée
How can I set no initial value for the unit delay block ??
You must have an initial value for switch2 so that it knows which of the [111] or [000] to start with. Therefore you must have ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Why can't I see some parameter values in simulink?
It has been my experience with SimPowerSystems (which I assume sps stands for) that they mask several of the implementation deta...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
I cant take inverse of J matris. it is jacobian.
simplify(J*inv(J)) ans = [ 1, 0, 0, 0] [ 0, 1, 0, 0] [ 0, 0, 1, 0] [ 0, 0, 0, 1]

environ 12 ans il y a | 1

| A accepté

Réponse apportée
Why can't matlab solve if a constant value is supplied?
Your "f" does not have a real valued solution (it has imaginary components). Perhaps you have an error in your equations for M ...

environ 12 ans il y a | 0

Réponse apportée
Simulink scope time resolution on X Axes
I have a similar complaint, but I assume they just decided it was too hard to try to fit all the significant digits on a small p...

environ 12 ans il y a | 0

Réponse apportée
Array to plot regarding position, please help
To make your matrix "less confusing" you can reshape it into a 3d matrix. For example: myarray3=permute(reshape(myarray',3...

environ 12 ans il y a | 0

Réponse apportée
using Battery Voltage in Algebraic Loops
You most likely have an algebraic loop because you are trying to use the value of the battery voltage in a calculation for the c...

environ 12 ans il y a | 0

Réponse apportée
matlab simulink should count how many times the value of a signal coming out of a simulink block changes. How can i realize this ???
You can use a "triggered subsystem" block and set the trigger to "either". Use your signal value as the trigger. Then inside...

environ 12 ans il y a | 2

| A accepté

Réponse apportée
How to take only few rows in a large matrix
You can use the function unique() [C,IA,IC]=unique(A(:,2)) A(IA,:) Or perhaps if you already know the indicies of the r...

environ 12 ans il y a | 0

Réponse apportée
Finiding Peaks and plotting in 3D
I ran your code and it works fine for me as long as I change the first line from tx =linspace(-30, 30, 49*49); to t...

environ 12 ans il y a | 0

Réponse apportée
Newton's Method returns complex value.
If this is a school project requiring that you use Newton's method on some non-smooth function, than your professor probably is ...

environ 12 ans il y a | 0

Réponse apportée
How do I add a legend to a plot with multiple data sets and 3 curves per data set?
1) During your loop, create an array of handles that you want. h(i)=H1; % just add the handle for one of the three plots fo...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Returning the results of a function in a matrix
If your function above is working, you can just call it from another function as many times as you need. Of course if you are d...

environ 12 ans il y a | 0

Réponse apportée
Stuck with for loop with harmonic frequency algorithm
for idx=1:length(A) y(idx,:) = A(idx) * sin(linspace(0, nSeconds * Harm(idx) * 2* pi, nSeconds*Fs)) end

environ 12 ans il y a | 1

| A accepté

Réponse apportée
how can i access signals on a bus in simulink ?
Use the "Bus Selector" block to get the signals you are interested in. From the documentation: Bus Selector: Select signa...

environ 12 ans il y a | 0

Réponse apportée
I found strange error in matlab R2013a calculation using0 'floor'
Because floating point math is a strange thing. Try setting format long and then rerun your above calculations. (Re...

environ 12 ans il y a | 0

Réponse apportée
How do I get MATLAB to automatically build a column of cell array data based on an array of varying numerical values?
There are lots of ways. A couple simple examples you can play with to help you get started: 1) year_names={70, 'seventy'...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
How to store value for multiple iteration
a= 10; b= [1 0 0 0 1 0 1 0 1 0;1 1 0 0 1 0 1 0 1 1;1 0 1 0 1 0 1 1 1 0;1 1 1 1 1 0 1 0 1 0;1 0 1 0 1 0 1 0 1 0 ]; e= [0....

environ 12 ans il y a | 1

| A accepté

Réponse apportée
How to avoid the split line
Are you allowed to give it a bit more resolution? Changing just the first line solved it for me: [Th,Ph]=meshgrid(-20:.1:20...

environ 12 ans il y a | 0

A résolu


QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

environ 12 ans il y a

A résolu


Calculate the Levenshtein distance between two strings
This problem description is lifted from <http://en.wikipedia.org/wiki/Levenshtein_distance>. The Levenshtein distance betwee...

environ 12 ans il y a

Charger plus