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

ongeveer 8 jaar ago | 0

| accepted

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

ongeveer 8 jaar 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 ...

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

| accepted

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

ongeveer 8 jaar ago | 0

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

meer dan 8 jaar 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...

bijna 9 jaar 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...

ongeveer 9 jaar 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...

ongeveer 9 jaar 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...

ongeveer 9 jaar 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...

ongeveer 9 jaar 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 ...

ongeveer 9 jaar 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...

ongeveer 9 jaar 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...

ongeveer 9 jaar 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...

ongeveer 9 jaar ago | 2 answers | 0

2

answers

Question


Set boundaries for norminv output
Hi. I am trying to generate randomized data with a certain average and a standard deviation. However, the data has to be wit...

meer dan 9 jaar ago | 1 answer | 0

1

answer

Question


Faster way to interpolate 3D-gridded data?
Hi. I have a 3D-grid of temperatures with a 1 hour resolution. The matrix is formed as follows: T(time,longitude,latitude)...

meer dan 9 jaar ago | 0 answers | 0

0

answers

Question


Simulink - unsolvable algebraic loop when using discrete shift register
Hi. I am trying to design a controller in Simulink that makes sure the moving average (mean value of the last 10 minutes) st...

meer dan 9 jaar ago | 0 answers | 0

0

answers

Answered
Error when using legend on contour plot(2014b
Okay, I found the reason for my problem. Maybe it might help you, too. The matrix I was scattering contained NaNs. I removed a...

meer dan 9 jaar ago | 1

Answered
Accessing website (untrusted SSL / HTTPS) using urlread
I give up. I have decided to use cURL via the function system('curl -k https://oflxd21.dwd.de/...') with the option -k,...

meer dan 9 jaar ago | 1

| accepted

Question


Accessing website (untrusted SSL / HTTPS) using urlread
Hi. I have been trying to access a website and log in using urlread. I keep getting error messages such as Error using ...

meer dan 9 jaar ago | 1 answer | 0

1

answer

Answered
Choosing an ode solver in function input
Never mind, I figured it out. I decided to pass the solver as a function handle. So the function is written as function...

meer dan 9 jaar ago | 0

| accepted

Answered
How to save an axis as an image automatically?
doc print Might have all the info you need :)

meer dan 9 jaar ago | 0

Question


Choosing an ode solver in function input
Hi everyone, I am working on a function that simulates a heat storage tank and uses ODE solvers to calculate the energy balan...

meer dan 9 jaar ago | 1 answer | 0

1

answer

Answered
Need help creating a table in which each cell contains a pair( or more) of numbers
Use a cell array. You could run the following code: xlab = {[], '1', '2', '3', '4', '5'}; %labels as strings, comma to mak...

meer dan 9 jaar ago | 0

Question


Using Nx1 vector as index to extract values from an NxM matrix and create an Nx1 vector
Hi. I will try to explain my title: I have an NxM matrix, e. g. M = [1 2 3; 4 5 6; 7 8 9]; and an Nx1 index vector, e...

meer dan 9 jaar ago | 1 answer | 0

1

answer

Answered
"Warning: Name is nonexistent or not a directory:" when not connected to network drive
Okay, nevermind, I found a solution. 1. Give yourself editing rights to the file matlabrc.m 2. Between the lines 32 and 33 t...

meer dan 9 jaar ago | 0

| accepted

Question


"Warning: Name is nonexistent or not a directory:" when not connected to network drive
Hi. I have a set of folders in my Matlab path that are on a network drive. I do not want to sync the drive to my PC, because ...

meer dan 9 jaar ago | 1 answer | 0

1

answer

Question


Neural network predicting impossible values
Hi. I have created a NARX neural network that attempts to predict 96 values per day (daily values with a 15 minute-time resol...

bijna 10 jaar ago | 1 answer | 0

1

answer

Answered
copying colorbar from one figure to another and replacing first YTick
Okay, I found a workaround using xlim, removing the border and making the background white. There's still a little bit of the x...

meer dan 10 jaar ago | 0

| accepted

Load more