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

más de 15 años hace | 1

| aceptada

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

más de 15 años hace | 1

| aceptada

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

más de 15 años hace | 3

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

más de 15 años hace | 3

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 1

| aceptada

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

más de 15 años hace | 9

Pregunta


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

más de 15 años hace | 35 respuestas | 9

35

respuestas

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 3

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

más de 15 años hace | 0

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

más de 15 años hace | 0

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

más de 15 años hace | 1

| aceptada

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

más de 15 años hace | 1

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

más de 15 años hace | 0

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

| aceptada

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

más de 15 años hace | 0

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

más de 15 años hace | 4

Pregunta


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

más de 15 años hace | 18 respuestas | 9

18

respuestas

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

más de 15 años hace | 4

| aceptada

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

más de 15 años hace | 2

| aceptada

Cargar más