17 total contributions since 2016

Question

ismember runs too slow (others have asked similar questions)

I am trying to use ismember in a long for loop to identify indices shared between arrays. This is pretty similar to a question t...

2 years ago | 1 answer | 0

Question

ismember runs too slow (others have asked similar questions)

I am trying to use ismember in a long for loop to identify indices shared between arrays. This is pretty similar to a question t...

2 years ago | 0 answers | 0

Question

Split array into separate arrays, where difference between values exceeds a specific number

Let's say I have this array. A = [1 2 3 4 10 11 12 20 21 22 23 29 30 31 32 40 41 42]; In this array, between the 4th a...

3 years ago | 1 answer | 0

Question

Rewrite a long symbolic fraction with fraction bars so it is more compact

I have a symbolic output (see below) that is extremely long, and hard to identify when each set of parentheses begins and stops....

3 years ago | 1 answer | 0

Question

Trying to load the entire structure field but only able to get the first element

I have a structure array 147x1 with 5 fields. Whenever I try b=folderInfo.bytes it only returns the first element, in...

3 years ago | 1 answer | 0

Question

Count how many times a number is repeated in a certain row of an array

Please consider the array A = [1;1;1;2;2;2;2;2;3;3;4;4;4;4;4;4;4;5;5;5;5]; I would like to determine how many times each...

3 years ago | 1 answer | 0

Question

How to correct the error “Valid indices for 'variable' are restricted in PARFOR loops”

I am trying to set up a parfor nested loop in MatLab R2016a as below. N = size(A,1); M = size(v,1); in = zeros(N*M,1)...

3 years ago | 1 answer | 0

Question

How do I find the path of an external hard drive plugged into my device with MatLab?

I am using an external hard drive on multiple devices on the same network. I need to access data on a single external hard drive...

3 years ago | 1 answer | 0

Question

Search for pdf with specific title and move to a different location on my PC with matlab

Hello, I have a folder, let's say 'C:\directory', with a large number of PDF files in it. This folder also houses my matlab c...

3 years ago | 1 answer | 0

Question

meshgrid provides wrong dimensions

Hello, I am using the meshgrid function to try and make a grid for my surface plots. My x,y, and z arrays are length 102, 42...

4 years ago | 1 answer | 1

Question

How do I make two axes on the same plot using a single set of data?

Hello, I am trying to plot a curve with one shared y axis and two separate x axes. I am able to do this but I run into some prob...

4 years ago | 0 answers | 0

Question

Find the indices where an two iso-surfaces intersect

Hello, I would like to find the indices where two iso-surfaces intersect. The first surface is one from my CFD data (in blue)...

4 years ago | 0 answers | 0

Question

colorbar zooming problem with gca

Hello, I am trying to make contour plots so that I can eventually put them into a movie. However, I'm having a small problem tha...

4 years ago | 0 answers | 0

Question

Extract slice data from 3D scalar field into a N by M array for integration in Matlab

I am looking to extract data on a plane of a scalar field in Matlab so that I can integrate over the area of the slice and find ...

4 years ago | 2 answers | 0

Question

Extract Min and Max values from Contour Plot

Hello, I have a special function that creates a contour plot on the surface of cylinder. I would like to extract the minimum ...

4 years ago | 1 answer | 0

Question

Iso-surface with two plots only plots in one color

I have the following function, that I use to plot two iso-surfaces from data collected in CFD. The only problem is that it does ...

4 years ago | 0 answers | 0

Question

Operands to the and && operators must be convertible to logical scalar values

My script takes zeros(3,3,countX_dn,countY_dn,countZ_dn) and uses central differencing to calculate the values inside ignoring t...

5 years ago | 1 answer | 0