Answered
combine 3 dimensions array in cells into 1 cell
Hi, just concatenate using _cat_ % generate a 1x10 cell, every element is a 10x10x50 array for i = 1:10 C1{i} ...

11 years ago | 0

| accepted

Answered
Bar charts with categories in the x axis
Hi, I'm not sure I get your problem, but I think you want something like : % plot the data as bar value = [15,25,23,1...

11 years ago | 1

Answered
Solving non homogenous differential equations numerically using ode45 etc
you can rewrite your equation as : dmdt + a*exp(Asin(wt)) * exp((2-m)^2) = 0 which is of the form of y'(t) + f(t)y(t) =...

11 years ago | 1

Answered
How do I assign specific numbers (and letters) to the tick marks of a figure?
Hi, you just probably need something like Xtick = get(gca,'Xtick'); set(gca,'Xtick',linspace(Xtick(1),Xtick(end),8),'...

11 years ago | 1

Answered
How do I force breaking from a modal GUI window?
Hi, one way to manage the closure of a modal figure is to encapsulate your closerequestfcn in a try-catch statement, otherwis...

11 years ago | 0

| accepted

Answered
How do I get a mixed string from several arrays of strings?
Hi, that's because you used "()" instead of "{}" to access element of a cell, and a "," instead of ";" to concatenate vertica...

11 years ago | 0

| accepted

Answered
hi... i want to store the output of matlab program into workspace
Hi, let say your function is called _power_fault_ and has one output : _voltage_ if you call this function inside another...

11 years ago | 0

Answered
convert the cell array to double
Hi, if your cell array contains only doubles, then use cell2mat. C = {1 2 ; 3 4}; M = cell2mat(C);

11 years ago | 0

Answered
MATLAB - Establishing a connection between a script and GUI popup menus
Hi, I attached a simple gui made with guide to show you what I meant. Changing the popupmenu will automatically call the c...

11 years ago | 0

Answered
I Get error in imread
you just need to give the full path of your file [filename,pathname]=uigetfile('*.bmp','Select the image'); B= imrea...

11 years ago | 0

| accepted

Answered
??? Error: The expression to the left of the equals sign is not a valid target for an assignment.
Hi, your _else if_ (in C code) conditions are badly written -> _elseif_ in matlab code. and the conditions are not condit...

11 years ago | 0

| accepted

Answered
hi , i want to extract lower case letters i & j and also want to know the placements of dots?
Hi, see strfind ex : str = 'ARTioLMj' strfind(str,'i') strfind(str,'j') same for dots

11 years ago | 0

Answered
DFT - How to label x-axis in frequency
your line Xk = (WNnk*f2 ); is not working. problem of dimensions : _WNnk_ is 128x128 matrix and _f2_ is a 1x128. may...

11 years ago | 0

Answered
how can i align two arrays according to their clock
just do : plot(time,data)

11 years ago | 0

Answered
It is possible to find all m-file i call to another m-file?
Hi, Just use the _Find_ _Files_ of Matlab. select the _current_ _folder_ then ctrl+F <</matlabcentral/answers/uploa...

11 years ago | 0

| accepted

Answered
MATLAB - Establishing a connection between a script and GUI popup menus
Hi, it seems that you want the graph to be automatically updated when you change a popup. in every callback of the popupme...

11 years ago | 0

Answered
Is it Possible to store an if Condition in a String to manipulate later ?
you can do that using _eval_ r=1; aaa = 'r > 0 && r < 5 '; if eval(aaa) r = r+1; end disp(r);

11 years ago | 0

| accepted

Answered
why do I get "Matrix dimensions must agree" when using "<"
so T is a string (= _fileName_)? and then you do T1=T-60; T2=T+60; it seems that you need to convert your data....

11 years ago | 0

Answered
why do I get "Matrix dimensions must agree" when using "<"
Hi, What is the length of _MiceCond_ ? if _length(MiceCond)_ is more than 6 (length of _TimeVec_) then you're gonna get an...

11 years ago | 0

Answered
Multiple figures, keep one in foreground
Hi, you can make figure 1 and 2 invisible during the process, and make them appear only at the end

11 years ago | 0

| accepted

Answered
could any one please advise me on what is wrong with this code ?
Hi, so, many problems : first line : what is the name of your function ? convertGrades, NamesAndGrades ? and in this line...

11 years ago | 0

| accepted

Answered
clear titles in gui
Hi, something like delete(findall(findall(gcf,'Type','axe'),'Type','text')) delete all _text_ (title is a text) whos ...

11 years ago | 2

| accepted

Answered
how to fix a nested for loop
this code just can't work because you're redefining the index variable Smax ans K inside the loops for Smax = linspace(10,5...

11 years ago | 0

Answered
Transfer Function in Simulink
here is a model which computes with 2 swicth. Note : i made a change using S instead of A to detect increase and decrease (I do...

11 years ago | 0

Answered
Transfer Function in Simulink
Actually, the simple model I made just takes care of the detect increase. it computes : if U>U/Z % if current value > prece...

11 years ago | 0

Answered
Undefined function 'signal' for input arguments of type 'double'.
and is signal.m on your path ? in matlab, try which signal if the answer is : 'signal' not found. then you just ne...

11 years ago | 0

| accepted

Answered
polyfit and R^2 value
Hi, Did you read the help of polyfit ? *[p,S] = polyfit(x,y,n) returns the polynomial coefficients p and a structure S for...

11 years ago | 3

Answered
Undefined function 'signal' for input arguments of type 'double'.
Hi, Matlab is telling you that it doesn't recognize _signal_ as a function. is _signal_ a mfile you want to use ? or a mat...

11 years ago | 0

Answered
Transfer Function in Simulink
Hi, you can try something like <</matlabcentral/answers/uploaded_files/19716/test_sim.png>> you may need to add a se...

11 years ago | 0

Answered
Matlab Figure and TextBox
Different colors mean different objects. just use several call to text load mandrill % demo image in matlab image(X);...

11 years ago | 0

| accepted

Load more