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

15 years ago | 1

| accepted

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

15 years ago | 1

| accepted

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

15 years ago | 3

Answered
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); ...

15 years ago | 3

Answered
GUI flickers when customly resized
No flicker here. What renderer are you using? I am using painters.

15 years ago | 0

Answered
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];...

15 years ago | 0

Answered
vector to repeated matrix multiplication
One approach: sum(bsxfun(@times,A,reshape(V,1,1,3)),3)

15 years ago | 1

| accepted

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

15 years ago | 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...

15 years ago | 35 answers | 9

35

answers

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

15 years ago | 0

| accepted

Answered
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); ...

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 0

| accepted

Answered
triangle
Another vote to update your topic and don't forget to DELETE this topic!

15 years ago | 0

Answered
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));...

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 3

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

15 years ago | 0

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

15 years ago | 0

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

15 years ago | 1

| accepted

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

15 years ago | 1

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

15 years ago | 0

Answered
Creating an array from 2 other arrays
Z = setdiff(X,Y) or (just for fun): Z = X(~ismember(X,Y))

15 years ago | 0

| accepted

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

15 years ago | 0

| accepted

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

15 years ago | 0

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

15 years ago | 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') ...

15 years ago | 18 answers | 9

18

answers

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

15 years ago | 4

| accepted

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

15 years ago | 2

| accepted

Load more