Community Profile

# Spencer Chen

##### Last seen: 1 dag ago
26 total contributions since 2016

View details...

Contributions in
View by

create a matrix from matrix with zeros elements
You can create a new matrix of the same size: B = zeros(size(A)); Then assign non-zero data in B. Blessings, Spencer

1 dag ago | 0

Issues with polynomial fit
You are fitting an order-1 polynomial, i.e. linear, so it is a bad fit. Try higher orders. But it looks like a different functio...

1 dag ago | 0

set Precision in lsqcurvefit
Check out: doc optimoptions I think something like OptimalityTolerance is what you are looking for. Blessings, Spencer

10 dagen ago | 0

Data type conversion help
First of all, assuming that your Rpt_row_sel is a table, then Rpt_row_sel(:,2) will also output a table, which cannot be compare...

10 dagen ago | 0

Write cell data to excel or text file in a specific format
I'm afraid that you are not clear enough for me regarding the original format of the data, so I can only guess. If you just wan...

10 dagen ago | 0

Plotting Points at Specified Index Values
Let's separate your problem into 2 parts: (1) Plotting problem. (2) Finding location of you Maximum on the xGrid2. I'll start w...

10 dagen ago | 0

Index in position 1 exceeds array bounds (must not exceed 1)
Try instead: layl=scanvecs{l}; Note the curly brackets to extracting the content of the cell at the indexed position. Using r...

10 dagen ago | 0

| accepted

Add 0.5 *0.5 degree grid on figure (country)
You can set the XTick and YTick properties of the axis. Blessings, Spencer

10 dagen ago | 1

Your Test_cell format is not compatible with the SM_C table you have in Annoation.jpg. To add a new field to an existing table,...

10 dagen ago | 0

Colormap overriden by new Parent figure
Still working on this problem if anyone has more suggestions. Attached is a screencap of my GUI with the panel on the left in t...

ongeveer een jaar ago | 0

Colormap overriden by new Parent figure
There must be a flag somewhere so the system knows whether to override the axes colormap with the figure colormap. I cannot find...

ongeveer een jaar ago | 0

Colormap overriden by new Parent figure
Thanks. I forgot about that. This works for my example. However, for some reason I'm still having trouble with colormap with m...

ongeveer een jaar ago | 0

Question

Colormap overriden by new Parent figure
I've encountered a strange problem with colormaps. When I transfer the "Parent" attribute of my axis to a new figure, then its c...

ongeveer een jaar ago | 4 answers | 0

### 4

Question

Permanent panel of GoTo section list
In Matlab Editor, the GoTo toolstrip will give a list of sections that allows you jump to various locations of the script. Is t...

ongeveer een jaar ago | 1 answer | 0

### 1

Question

NI PCIe-6353 for Simulink Desktop Real-Time OS X
I have a NI PCIe-6353 installed on a mac running OSX 10.10.5. I know there is not NI driver for this card, but since the Sim...

meer dan een jaar ago | 1 answer | 0

### 1

Question

Driving Audio Device in Simulink Desktop Real-time
The Audio Writer block does not work in External Mode with Desktop Real-Time. Is there a way to drive the audio output otherw...

bijna 2 jaar ago | 0 answers | 0

### 0

interpolate and resize matrix?
You can look up Matlab's "interp2" built-in function.

bijna 3 jaar ago | 0

| accepted

I need svm classifier code.
Try searching for SVM in Matlab's documentation.

bijna 3 jaar ago | 0

Is there a way to remove the nested for loops from this segment of code? I'm trying to make the code generic so it can take in n-number of moment arrays.
Not exactly sure if this is what you are looking for: > sum(moment,3); to sum the 3rd dimension of the matrix?

bijna 3 jaar ago | 0

What is the problem with my function to compute the cosine similarity of two images?

bijna 3 jaar ago | 0

How can I solve a VideoReader error on ubuntu linux?
Can you test to see if your filename can be found from Matlab using the "exist" function?

bijna 3 jaar ago | 0

Why the EOF gives the total of 99.9
Running error, perhaps. caleof is not a built-in Matlab function. You are probably using the File Exchange toolbox: https:...

bijna 3 jaar ago | 0

Why my input image is displayed as blank image by using the following code?
The problem is that your converted your image to a double then applied rgb2gray. When the input is double, rgb2gray is expecting...

bijna 3 jaar ago | 0

is it im2double() have the same result with double()?
Try it and tell us.

bijna 3 jaar ago | 0

Basic functions not working
It looks to me that somehow the internal "find" function is overridden with another function in the Matlab path or by a variable...

bijna 3 jaar ago | 0

Question

Image Acquisition getdata race condition when camera is active capturing frames
I am working with a PCO Edge 4.2 on Matlab R2016a with Image Acquisition Toolbox on Win7sp1 64-bit. This camera has the function...

meer dan 3 jaar ago | 0 answers | 0