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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 3

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

oltre 15 anni fa | 3

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 9

Domanda


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

oltre 15 anni fa | 35 risposte | 9

35

risposte

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 3

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 1

| accettato

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

oltre 15 anni fa | 1

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

| accettato

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

oltre 15 anni fa | 0

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

oltre 15 anni fa | 4

Domanda


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

oltre 15 anni fa | 18 risposte | 9

18

risposte

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

oltre 15 anni fa | 4

| accettato

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

oltre 15 anni fa | 2

| accettato

Carica altro