Gelöst


Narcissistic number ?
Inspired by Problem 2056 created by Ted. In recreational number theory, a narcissistic number is a number that is the sum of ...

mehr als 12 Jahre vor

Beantwortet
Importing excel spreadsheet into Simulink (configuration parameters pane)
Could you just import it into MATLAB (completely outside of Simulink) using the Import tool or importdata or xlsread and then wr...

mehr als 12 Jahre vor | 0

Beantwortet
Plotting data from a mat file that is a struct
S = load('filename.mat'); plot(S.times,S.counts); Doc: <http://www.mathworks.com/help/releases/R2013b/matlab/structur...

mehr als 12 Jahre vor | 1

Beantwortet
Experience and Tips on colormap for waterfall plots?
<http://www.mathworks.com/matlabcentral/fileexchange/28982-perceptually-improved-colormaps>

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
Sort columns by maximum value?
x = [5 -2 3 -10 6 2 0 0 1] [~,idx] = sort(max(x)); y = x(:,idx)

mehr als 12 Jahre vor | 0

Gelöst


remove nans fast
There are several ways to locate and remove nans in a matrix, and return an 1d row vector. In this problem the challenge is ...

mehr als 12 Jahre vor

Beantwortet
Error while using size(A,1)?
You have a variable names |size|. Rename this variable and clear it.

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
skip an unit test
To filter tests, you use an "assumable" qualification in your Test Method. <http://www.mathworks.com/help/releases/R2013b/mat...

mehr als 12 Jahre vor | 2

| akzeptiert

Beantwortet
Is it possible to model discrete populations using ode45?
It sounds like you will need to include an event that happens when Y <= 1. <http://www.mathworks.com/help/releases/R2013b/mat...

mehr als 12 Jahre vor | 0

Beantwortet
How can I publish all the sub-functions, sub-sub-functions, etc. into a single html/pdf file?
<http://www.mathworks.com/matlabcentral/fileexchange/33476-publish-dependent-and-called-functions> May help.

mehr als 12 Jahre vor | 0

Beantwortet
randomly generated non-intersecting ellipses
<http://www.mathworks.com/matlabcentral/fileexchange/7844-geom2d>

mehr als 12 Jahre vor | 0

Beantwortet
How do I prevent struct2handle from failing after a call to clear classes?
Any reason to avoid |hgload| and |hgsave|? figHndle = figure(); plot(1:10); hgsave(figHndle,'FigureStruct.mat'); cl...

mehr als 12 Jahre vor | 0

Beantwortet
Why isn't the editor remembering my tile layout
I'm able to reproduce this in 13b. If your organization is subscribed to SMS you can download the 14a prerelease which you migh...

mehr als 12 Jahre vor | 0

Beantwortet
fminunc on multiple variables
Objective functions expect all of the variables being optimized to be in "x" myfun(x,a,b,c) Where x is now a 1x3 vector....

mehr als 12 Jahre vor | 0

Beantwortet
Hidden gems in Matlab's toolboxes
Jan, if you really like |uisetcolor|, another one which I just learned about is |inspect|: figure; h = uicontrol('Style','...

mehr als 12 Jahre vor | 1

Beantwortet
How to troubleshoot Out of memory Error for this simple case ?
<http://www.mathworks.com/help/releases/R2013b/matlab/matlab_prog/resolving-out-of-memory-errors.html>

mehr als 12 Jahre vor | 0

Beantwortet
scrolling down in command window
Are you looking for the |home| command? >> home This will look like clc but will not clear out the command window.

mehr als 12 Jahre vor | 2

| akzeptiert

Beantwortet
Is there an elegant way to do a "flip-flop" sort from the middle or near the middle?
n = 7; v = [n:-2:1, 2:2:n]

mehr als 12 Jahre vor | 0

| akzeptiert

Beantwortet
creating a diagonal matrix?
diag(q(1,2,3)) And for more info: doc diag

mehr als 12 Jahre vor | 0

Beantwortet
Why doesn't it work, mixing arrays with non-array cumulative in a loop
_mult1,culmG,alpha_ are not defined as variables or functions. Thus you need to define them after the |clear all|. pwidth=...

mehr als 12 Jahre vor | 0

Beantwortet
How to assign probability to a matrix element?
x = rand(m,n) > p Just compare a random value to p.

mehr als 12 Jahre vor | 0

| akzeptiert

Gelöst


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

mehr als 12 Jahre vor

Beantwortet
questions on assigning values from a vector
This is generally recommended against as it is much easier (not to mention faster) to manipulate a 1xn vector x than dealing wit...

mehr als 12 Jahre vor | 1

Beantwortet
selecting randomly an array from multiple arrays
doc randperm

mehr als 12 Jahre vor | 0

Beantwortet
Passing Matrix using call by reference
What operation are you doing inside of |myfunc|? Is it elementwise? If so, MATLAB will do the operation in place if x is name...

mehr als 12 Jahre vor | 1

Gelöst


poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
This problem is a poll (and a little bit of "white hat hacktivism" as well) regarding Cody users sentiment about the use of rege...

mehr als 12 Jahre vor

Beantwortet
I wanna assign predetermined value in specific cell in uitable which created in GUI.
Doug just made a video for this :) <http://blogs.mathworks.com/videos/2013/12/03/matlab-manipulating-the-data-in-a-uitable-in...

mehr als 12 Jahre vor | 0

Beantwortet
finding headerline and transformation
Use |flipud| or, in R2013b or greater, |flip|. I = imread('1.jpg'); imshow(flipud(I)) And: doc flipud

mehr als 12 Jahre vor | 0

Beantwortet
Image segementation of cement paste complex structure!
There are a few things a little weird about your image: # First, for a CT image, I'd expect the background to have a lower in...

mehr als 12 Jahre vor | 1

Beantwortet
Issue with Mac, Linux and windows portability with ls and sprintf commant
Use |filesep| and |pathsep| instead of '/'. These will generate the appropriate separator for the path. doc filesep Or ...

mehr als 12 Jahre vor | 1

Mehr laden