Respondida
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')...

casi 12 años hace | 0

Respondida
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...

casi 12 años hace | 0

Respondida
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...

casi 12 años hace | 1

| aceptada

Respondida
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...

casi 12 años hace | 0

Respondida
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

casi 12 años hace | 0

| aceptada

Respondida
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...

casi 12 años hace | 0

| aceptada

Respondida
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...

alrededor de 12 años hace | 0

| aceptada

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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 ...

alrededor de 12 años hace | 0

| aceptada

Respondida
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...

alrededor de 12 años hace | 1

| aceptada

Respondida
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]

alrededor de 12 años hace | 1

| aceptada

Respondida
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 ...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 2

| aceptada

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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 ...

alrededor de 12 años hace | 0

Respondida
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...

alrededor de 12 años hace | 0

| aceptada

Respondida
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...

alrededor de 12 años hace | 0

Respondida
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

alrededor de 12 años hace | 1

| aceptada

Respondida
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...

más de 12 años hace | 0

Respondida
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...

más de 12 años hace | 0

Respondida
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'...

más de 12 años hace | 0

| aceptada

Respondida
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....

más de 12 años hace | 1

| aceptada

Respondida
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...

más de 12 años hace | 0

Resuelto


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...

más de 12 años hace

Resuelto


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

más de 12 años hace

Cargar más