Risposto
resize a matrix (1x30) to (1x25)
Hi, you could use interp1 g = rand(1,30); newx = linspace(1,30,25); newg = interp1(g,newx); plot(g,'b-+')...

oltre 11 anni fa | 0

| accettato

Risposto
Assigning value to vector in based on conditional
Hi, your code *didn't* reassign new value to all elements. only to the first one. it's just a "display impression". r = ...

oltre 11 anni fa | 0

| accettato

Risposto
How to get exact position (red point)?
If you know the "time zone" where you have this minimum, just use min on this interval. <</matlabcentral/answers/uploaded...

oltre 11 anni fa | 0

Risposto
Guide GUI deleted associated *.m file
it seems to me that you had created an object which is badly configured in the gui or which existed but you deleted it in the gu...

oltre 11 anni fa | 0

Risposto
Guide GUI deleted associated *.m file
Hi, Just guessing. Open your gui with guide In guide toolbar. Tools -> GUI options is "Generate FIG-file only" s...

oltre 11 anni fa | 0

Risposto
problems with reading a text file in matlab
You asked to read only the 4 first line InputText = textscan(fid,'%s',4,'delimiter','\n'); change it to InputTe...

oltre 11 anni fa | 0

| accettato

Risposto
subplot to specific figure
Hi, you can do set(0,'CurrentFigure',hFig) % you say to Matlab to make hFig thecurrent figure h1=subplot(2,2,1); .....

oltre 11 anni fa | 0

| accettato

Risposto
calculate the return between selected time points only
Hi, in your code, at the first iteration, you're trying to put a value in the 52th position of TF, which only have 20 element...

oltre 11 anni fa | 0

| accettato

Risposto
variable being saved as nonsence
Did you change of Matlab version ? I just did it with R2014a testmatrix = rand(50,400); save('test.txt','testmatr...

oltre 11 anni fa | 0

| accettato

Risposto
Input points from matlab to simulink
if x and y are vectors available in the workspace, (with a time vector corresponding), you can simply use a FromWorkspace block ...

oltre 11 anni fa | 0

| accettato

Risposto
How to store a data by getting from for loop in matlab ?
it's basic concatenation b=[]; for i=1:n % some calculation a = % your new row vector b=[b;a]; ...

oltre 11 anni fa | 0

Risposto
Stateflow verification of models
Hi, You're actually asking for several toolboxes 1) The Model Advisor allows you to chek some design rules, that's all, so...

oltre 11 anni fa | 0

Risposto
Help with for loop for a function
just add a counter M=[]; i=0; for t=0.01:0.01:10; i=i+1; M(i)=dtmf_attack(t); end dis...

oltre 11 anni fa | 0

Risposto
Identify pre-sign changes
I'm not sure to get your problem. something like % here changes of sign appear at positions : 3,4,5 and 8 x1 = [1 1 -...

oltre 11 anni fa | 0

| accettato

Risposto
How to use uicontrol and callback for a user-defined input flow?
In the callback of popup1, you just want to modify the string in popup2. I guess you need something like : function popu...

oltre 11 anni fa | 0

| accettato

Risposto
How do i solve f(x,k)=sin(x)-kx on matlab?
what are x ? k ? variables ? parameters ? Anyway, see the doc of <http://fr.mathworks.com/help/matlab/ref/fzero.html fze...

oltre 11 anni fa | 1

Risposto
Simulation time" and Sampling time
With Simulink, you are modeling some dynamics systems, meaning that your problem is time depending (For a physical modeling, you...

oltre 11 anni fa | 0

| accettato

Risposto
how to reduce the resolution of a matrix?
There was the same problem <http://au.mathworks.com/matlabcentral/answers/161739-how-to-change-4x4-matrix-to-2x2-matrix here> ...

oltre 11 anni fa | 0

Risposto
i am getting answer as an empty matrix..,why.?
For what I understand. you have a cell list and a 'matching' array s_names = {'nimisha' 'pooja' 'leela' 'jk'} s_marks...

oltre 11 anni fa | 0

| accettato

Risposto
Printing simulink file including all the blocks
same answer as <http://au.mathworks.com/matlabcentral/answers/163777-how-to-save-simulink-blocks-in-pdf-format#answer_159819 thi...

oltre 11 anni fa | 0

| accettato

Risposto
How to save simulink blocks in pdf format
Why don't you just use the print option in simulink ? open your model, then file -> print then for the printer, use PDF...

oltre 11 anni fa | 0

| accettato

Risposto
pass a variable value from simulink to gui while running simulation
you can send your signal in an interpreted matlab function (or a S-function). In this function (an external .m that you wrote...

oltre 11 anni fa | 0

| accettato

Risposto
To workspace block does not read 0 correctly
This is a classic problem of numerical precision. several ways to treat it : - before sending your data in the workspace, ...

oltre 11 anni fa | 0

Risposto
Plot a cell as surf
is B a cell or an array ? for an array (same for a cell), it depends on what is your data and which part you want to see. ...

oltre 11 anni fa | 0

| accettato

Risposto
How do I make surf accurately reflect my data?
you can play with shading A=zeros(5); A(3,3)=1; surf(A); pause(1) view(2); pause(1) shading interp

oltre 11 anni fa | 1

Risposto
how to resolve a "input argument is undefined error"?
Hi, just replace x = fminunc(@(x)objfun,x0,options) with x = fminunc(@objfun,x0,options)

oltre 11 anni fa | 0

Risposto
Function's product non linear equation in Simulink
Hi, If your signals are 1-dimensionnal data, use the basic product bloc such as : <</matlabcentral/answers/uploaded_files/...

oltre 11 anni fa | 0

Risposto
Plot Surface of Excel 100X10 table
to draw a surface : <http://fr.mathworks.com/help/matlab/ref/surf.html surf> to read the data from excel : <http://fr.mathwor...

oltre 11 anni fa | 0

Risposto
timer function and handles... again...
Hi, It seems to me that the problem is inside the data _handles_. I don't know your function _WPRread_, but, when you say ...

oltre 11 anni fa | 1

Risposto
Turn non-resizeable figure into resizeable figure?
Hi, In your callback function, don't use gcf, but the handle of your figure ( _figure1_ by default) function pushbutton1...

oltre 11 anni fa | 0

Carica altro