Réponse apportée
GUI flickers when customly resized
I think your approach looks like what I have done in the past. I tried to do a couple of things which I think might make a slig...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
GUI Pushbutton, accessing another file
Do you mean that your file is hardcoded into the GUI? If so, put this in the pushbutton callback: edit mfilename where you r...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
Some Foreign Matlab forums
I have on occasion visited Stack Overflow, but the MATLAB traffic there is pretty slow. It is in English.

plus de 15 ans il y a | 3

Réponse apportée
Dumb mistakes we make with MATLAB.
Along the lines of the cyclist's popular mistake, I do this one often enough: x = rand(1:100); % I meant: x = rand(1,100); ...

plus de 15 ans il y a | 3

Réponse apportée
GUI flickers when customly resized
No flicker here. What renderer are you using? I am using painters.

plus de 15 ans il y a | 0

Réponse apportée
vector to repeated matrix multiplication
On my machine, this outputs: 3.1 2.2 1 function [] = compare_bsx() % Compare BSXFUN, REPMAT and indexing. T = [0 0 0];...

plus de 15 ans il y a | 0

Réponse apportée
vector to repeated matrix multiplication
One approach: sum(bsxfun(@times,A,reshape(V,1,1,3)),3)

plus de 15 ans il y a | 1

| A accepté

Discussion


Dumb mistakes we make with MATLAB.
O.k., admit it. Who has done this (or something that resulted in the same loss of info) before? >> laster ??? Undefined f...

plus de 15 ans il y a | 9

Question


Dumb mistakes we make with MATLAB.
O.k., admit it. Who has done this (or something that resulted in the same loss of info) before? >> laster ??? Undefined f...

plus de 15 ans il y a | 35 réponses | 9

35

réponses

Réponse apportée
What Timezone Abbreviation does Java use for your location?
Everything looks kosher here: >> java.util.Date() % The date string display -ans.getTimezoneOffset()/60 % the timezo...

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
How do I plot this non-linear function...
One minor change will make it work. T = 180:1:360; k = .8823-((T-179)*(.0039)); s = 1.1e-2; r = s*(T.^4); ...

plus de 15 ans il y a | 0

Réponse apportée
matrix issue with null
Since I don't have Mathematica, and many may not, can you show what the output of those commands is? That way we could try to m...

plus de 15 ans il y a | 0

Réponse apportée
how to calculate the integral of function y=sqrt(c*exp(d*x)+g/x-1)?
Taking the square root does that sometimes. If you want to check your answer, show us c,d,g,a and b. For some numbers we get a...

plus de 15 ans il y a | 0

Réponse apportée
Plotting a year by hour
Also, you realize 1992 was a leap year? Is that the year your data was taken? If it is for a generic year, why not use: D2 ...

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
triangle
Another vote to update your topic and don't forget to DELETE this topic!

plus de 15 ans il y a | 0

Réponse apportée
Plotting functions
To elaborate on Walter's answer: t = 0:.001:2*pi; figure plot(t,sin(t));legend('sin(t)') figure plot(t,cos(t));...

plus de 15 ans il y a | 0

Réponse apportée
Inversion of ill Contioned Matrices
You could try scaling, or using <http://www.mathworks.com/help/techdoc/ref/pinv.html PINV>. However, I hope you are not taking ...

plus de 15 ans il y a | 0

Réponse apportée
[DISCONTINUED] Wish-list for MATLAB Answer sections.
Answer numbers. If we can't link to a certain answer within a question, at least give the ability to link to the question and s...

plus de 15 ans il y a | 3

Réponse apportée
if i have matrix x is 4 by 5, how can I retrieve the the row number and save it into y
x = ceil(rand(4,5)*20); % An example matrix. y = size(x,1); % Is this what you mean? y2 = x(4,:); % Or did you mean t...

plus de 15 ans il y a | 0

Réponse apportée
Need help With "If" statement
I don't know what you mean by "I don't want it to recursion through values <0." An IF statement is not a recursive thing. If y...

plus de 15 ans il y a | 0

Réponse apportée
combine (0 & 827 & .s) to 0827.s
x = 827; S = sprintf('0%i%s\n',x,'.hk') If your variable x might be any integer between 0 and 9999, and you must have a fo...

plus de 15 ans il y a | 1

| A accepté

Réponse apportée
How do I keep a handle and use FINDOBJ to get a handle again?
The FINDOBJ function finds the handle which fits the property/value pairs passed to it. It looks like you are passing a handle ...

plus de 15 ans il y a | 1

Réponse apportée
Hump-day puzzler.
A variation on Walter's theme. Though I am not sure how different this is from just calling FPRINT in the conditional, and it i...

plus de 15 ans il y a | 0

Réponse apportée
Creating an array from 2 other arrays
Z = setdiff(X,Y) or (just for fun): Z = X(~ismember(X,Y))

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
Problem with conditional code and missing data
I think you will want the ISEMPTY function, or the EXIST function. If there might not be any data in limit, then check if it is...

plus de 15 ans il y a | 0

| A accepté

Réponse apportée
matrix nchoosk for column HELP
This file should do what you want. <http://www.mathworks.com/matlabcentral/fileexchange/10064-allcomb>

plus de 15 ans il y a | 0

Réponse apportée
What do you like about MATLAB?
Superb, nearly complete documentation and corresponding search. I have been to the point of tears trying to find the simplest t...

plus de 15 ans il y a | 4

Question


Hump-day puzzler.
If you have seen this before, please let others figure it out! if (BLANK) disp('I Love ') else disp('MATLAB') ...

plus de 15 ans il y a | 18 réponses | 9

18

réponses

Réponse apportée
GUI for keyboard pressed representing the push button
Yes. Simply put the callbacks for the correct pushbuttons in the keypressfcn of the figure. You may need an enormous switchyar...

plus de 15 ans il y a | 4

| A accepté

Réponse apportée
How to mask an email address using m-code?
I don't quite know what you are after either, even with your response to Matt. If that is too long, I don't know what is shorte...

plus de 15 ans il y a | 2

| A accepté

Charger plus