Submitted


subplotnumber
For the numbering of subplots in the top left corner.

9 years ago | 1 download |

5.0 / 5

Submitted


ufigpos
For maintaining figure proportions on different screen resolutions.

9 years ago | 1 download |

5.0 / 5

Solved


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

9 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

9 years ago

Solved


Add two numbers
Given a and b, return the sum a+b in c.

9 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

9 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

9 years ago

Answered
While creating a new Mathworks login account i clicked as "personal" instead of "student " how to change it now
If you go to https://mathworks.com/mwaccount/ There should be an option to add a license and change the existing one if you hav...

9 years ago | 0

Answered
different excel version time convert problem
You may have to check the language setting or the formatting of the date on your mac

9 years ago | 0

| accepted

Answered
importdata: index exceeds matrix dimensions
It fails because there is probably no file or folder that matches 'Plane.*' in the current folder on your uni machine. So dir(pr...

9 years ago | 0

Answered
How to position the legend and legend box at my required place in the figure?
It will be difficult to determine the precise location automatically. You can manually position it using the 'Position' propert...

9 years ago | 0

| accepted

Submitted


cellstrfind
similar to strfind, but for use with cell arrays

9 years ago | 1 download |

5.0 / 5

Answered
concatonate time axis using a loop
This should do it: t = [0,1,2,3,4,5,0,1,2,3,4,5,6,7,8,9,10,0,1,2,3,4,5,6,7,8,9,10,0,1,2]; idx = find(ismember(t, 0))...

9 years ago | 0

Answered
Ho to keep entries in a for loop
You are pre-initializing ele with a zero, that's why it gets stored in ASCII in every loop iteration. I would change your code ...

9 years ago | 0

Solved


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

9 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

9 years ago

Answered
Error: The variable voltages1 in a parfor cannot be classified.
The problem is the line voltages1{256} = inputVoltage1; You cannot set a fixed index of an array or a matrix in a parfor...

9 years ago | 0

| accepted

Submitted


settings_backup
Creates or loads a backup of the MATLAB Preferences + Shortcuts

9 years ago | 1 download |

5.0 / 5

Answered
Matlab Cropping Plots to remove whitespace
I just finished working on a function that attemts to automatically solve this problem (without messing up colorbars, labels, et...

9 years ago | 0

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

9 years ago

Question


Sort dropdown lists in address field (current directory navigation bar) by date
Hi. By default, when clicking on a drop down menu in the <http://blogs.mathworks.com/community/2008/11/03/meet-the-new-curren...

10 years ago | 1 answer | 0

1

answer

Question


Problem using ginput to reposition axes
Hi. I am working on a function that lets you interactively reposition an axes (for example a subplot) using the mouse input. T...

10 years ago | 1 answer | 0

1

answer

Answered
what does the error ''Undefined function or method 'wholenetwork' for input arguments of type 'double'" mean?
It sounds like you may have one of the following two problems: 1. The folder containing your "wholenetwork.m" file is not add...

10 years ago | 0

| accepted

Question


"free up" workers from job on server
Hi. We have a shared server with 12 workers that we use for batch jobs. Most people send their jobs with 'NumWorkersRange' s...

10 years ago | 0 answers | 0

0

answers

Answered
Force even distribution over logical
Nevermind, I just found a solution: N = 1000; %number of locations in sample R = length(find(in))/(size(in,1)*size(i...

10 years ago | 0

| accepted

Question


Force even distribution over logical
Hi. I have a logical matrix C (230x312 logical) that represents locations in a country along a grid of longitudes and latitud...

10 years ago | 1 answer | 0

1

answer

Question


Assign 4 GPUs - 1 to each worker in parfor loop
Hi. I have written a function that uses the GPU to speed up the progress. It seems to be working well, because the GPU version ...

10 years ago | 1 answer | 0

1

answer

Answered
Input is too large to create ByteBuffer - Error when running batch job on server
Okay I found the problem. I forgot to clear the input variables. So the job tried to return the entire workspace (including i...

10 years ago | 1

| accepted

Question


Input is too large to create ByteBuffer - Error when running batch job on server
Hi. I have some rather large simulations to run on a server. I send the scripts as batch jobs using parallel computing and t...

10 years ago | 1 answer | 0

1

answer

Question


Extract rows in 3D matrix according to indexes
x2 = zeros(60, 46000, 'single'); for N = 1:46000 x2(:,N) = x(:,i(N),N); end Hi. I have a 3D matrix x with the dimension...

10 years ago | 2 answers | 0

2

answers

Load more