Réponse apportée
Having trouble with guide, tags, and Findobj
GUIDE GUIs have hidden handles... p = findall(0,'tag','Census') P.S., you may want to switch to other methods of handle...

plus de 13 ans il y a | 2

Réponse apportée
How to create a cell array with constant string entries without for loops.
Here are a couple options. Note that the second option is probably preferable in some respects but can give you trouble if B is...

plus de 13 ans il y a | 3

| A accepté

Réponse apportée
save a plot without gridlines
No idea why this happens, but I recommend you use this to export your figure no matter how you made it <http://www.mathworks....

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
how to read numbers in a string where white-space separated everthing
This is not possible without more information. Say you do this: S=strrep('3 9 8 . 6 1 9 5 0 0 1 3 0 3 1 3 . 2 1 2 7 6 0','...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Unable to plot two functions to find the intersection points
Try this way. You have to pay attention to the ylimits! x=linspace(0, 5,1000); y1=abs(x).^-5 .* exp(x.^2) - atan(997...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
solve() gives incorrect answer
Try this way: >> solve('(- 13*x^2 + 2*x + 1)/(10*(x^5)^(1/2))+1') ans = ...

plus de 13 ans il y a | 0

Réponse apportée
Determine the type of input in a function??
Well you can't really pass a .mat file or excel file to a MATLAB function. You can pass a string name of a file. So something ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Presenting this results in a tabulated form?
Holy lack of semi-colons! Try this: home f=@(x)x^10-1; xl=0; xu=1.3; xr = xu; es=0.01; fl=f(xl); fu...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How do I decode a binary string that is 1X104 characters long that is written in ASCII?
How is the message stored? I.e., how many bits per letter, etc. It might help if you show how that string was generated from t...

plus de 13 ans il y a | 0

Réponse apportée
Can't set the current figure inside a function
Try changing the order of the children of root. figure figure pause(1) % Now fig 2 is on top. set(0,'children',...

plus de 13 ans il y a | 0

Réponse apportée
Saving cell array with strings to a text file.
a = {'zdfsad' 'xdads' 'zdfsad' 'xdads' 'zdfsad' 'xdads';... 'shs' 'asdbjv' 'affsa' 'asakj' 'asdbjv' 'affsa';... ...

plus de 13 ans il y a | 1

Réponse apportée
Can you create a plot within your function?
Sure it is possible! Functions do not have to return anything: function[]=RC(V,R,C,t) VR = (V*(exp(-t/(R*C))));...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Is there a one line code solution to generate a matrix of permutations
The cheapest rate I find is 59 units. I can find the minimum cost in one line. But I cannot find this and also return the job ...

plus de 13 ans il y a | 0

Réponse apportée
Where is this error coming from?
That: if true is not part of the code, right? If it is, then you should be not even able to run the code.... Did you...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
solving an equation in MATLAB
S = solve('z1*(K1-1)/(q*(K1-1)+1)+z2*(K2-1)/(q*(K2-1)+1)+z3*(K3-1)/(q*(K3-1)+1)','q')

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
decrease num of for loops
This should be much faster: D = (2*(0:7).'+1)*180/16; % No need to do this over and over. for u=0:7 for v=0:...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Help to use Callback property in uicontrol
Where is the variable stored? Callback functions take at least 2 inputs, always. Here is a simple demo, illustrating one w...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Error message whrn loading a program about "columns" not the same as previous lines?
Why are you trying to load an M-file? An M-file is a MATLAB file that holds coded instructions, often in the form of a function...

plus de 13 ans il y a | 0

Réponse apportée
how to connect points where the interval has no values?
Is test a cell array? What you show is not possible for a regular array. Please elaborate.

plus de 13 ans il y a | 0

Réponse apportée
Using fsolve to generate an array of answers
Use this: X_ph{i}=fsolve(fun3,x3); % Note {} not () Now X_ph is a cell array. help cell Also, you might be sor...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Data with names through a loop in vector?
Did you create this data? It is best to start over and not create such a mess in the first place..... If possible, I would go ...

plus de 13 ans il y a | 0

Réponse apportée
Unknown x: x+1=1 in machine numbers
x = eps(1)/2; If x is larger than this, 1+x>1.

plus de 13 ans il y a | 0

Réponse apportée
How to find positive x-root of this function?
Why not just use: R = roots([1 0 0 0 0 0 0 0 0 0 -1]);

plus de 13 ans il y a | 0

Réponse apportée
Why is my plotting background messed up?
What commands do you use to create the plot? set(gca,'color','w')

plus de 13 ans il y a | 0

Réponse apportée
Tic Toc Function Help
Try these lines instead: p1=polyfit(n(length(n)/2:end),time1(length(n)/2:end),1); p2=polyfit(n(length(n)/2:end),time2(le...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Converting binary to decimal and vice versa, please help!!
Here I have simply fixed your code. You were really close! function decimal= mybin2real(binarystring) % Converts a...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Create a string from array by concatenating array elements separated by comma.
a = [7 8 9] S = sprintf('%i,',a); S = S(1:end-1)

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Output of a function as input of another function
Say your first function is named FUNC1, and your second function is named FUNC2. You do not specify if FUNC2 returns any value....

plus de 13 ans il y a | 0

Réponse apportée
Is there something like 'array colon'? in other words how can I apply colon operator to all the elements of an array (please read the text below so my question will make sense)?
A = [1 10 16 23]; u = reshape(bsxfun(@plus,A,(-3:2).'),1,[])

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to display answers using polyfit
How do you know the slop of the line before you do the fit? How noisy is the data? This seems to work: >> x = 0:1; y...

plus de 13 ans il y a | 0

Charger plus