Answered
baffling... rounding error of not so small numbers
That's not unexpected at all. By taking the floor, you are pretending that floating point precision limits do not exist. In co...

14 years ago | 0

Answered
Getting different answers when using mldivide in parfor-loop compared to in "ordinary" script
I had a go on my own 64-bit 2011b running on Win7 platform. Same deal. I found the following in the release notes for MatLab 4...

14 years ago | 0

| accepted

Answered
Why and how can i fix the vert cat error in this code? It works fine with a 3 len string but over that i get a vert cat error
What value of _s_ works, and what value of _s_ breaks? Is _s_ a string or an array of numbers? You need to ensure that len...

14 years ago | 0

Answered
Shape Recognition, hough transform
You could look at this code on FileExchange, which appears to support triangles and squares: <http://www.mathworks.com/matlab...

14 years ago | 0

Answered
Passing xtra parameter
That doesn't look right. I am guessing you intended to do the following: function y = parameterfun(x,a,b,c) y = (a - ...

14 years ago | 0

Answered
How do I modify this small code to be able to extract data to a matrix and not a buffer?
*Part 1*: Slightly inefficient, but not really a problem. You can just split each line using _strread_ and grow the _adj_close_...

14 years ago | 0

| accepted

Answered
draw a circle in matlab
There is this code on FileExchange: <http://www.mathworks.com/matlabcentral/fileexchange/2876>

14 years ago | 0

Answered
Looping problem need guide.
So you mean that you want the number of 1's in _DG_ to be equal to _edges_? I would say that *if*-condition is preventing som...

14 years ago | 1

| accepted

Answered
How to use variable in a function?
A lot of people may ignore this question because it's about programming rather than MatLab, specifically... But it would help y...

14 years ago | 0

| accepted

Question


How do I get MCR to look for my MEX files in the current directory?
I have included a mex file with my deployed app, but when running the mexed function, I get the error: "An error occurred: ...

14 years ago | 1 answer | 0

1

answer

Answered
“if” statement using “or” operator.
So you want the last index within the valid range? I don't know why you are multiplying by 1.01 and 0.99. Perhaps you have d...

14 years ago | 2

Answered
subs Command
From your description I gather that you want to swap out a range of values from an array into new indices within that array. Yo...

14 years ago | 0

| accepted

Answered
using logic operators
There's a few odd things going on here... First, the valid range for j as used here is 1:4, not 1:5 for a 4x5 matrix. As f...

14 years ago | 0

Answered
Just learning matlab question
It's hard to answer this without giving you the answer... =) But here goes an attempt... You can do boolean operations on a ...

14 years ago | 0

| accepted

Answered
Error loading TreeBagger from .MAT file in deployed app.
Just for completeness, I'll post the solution from _owr_'s linked article.... The class definition must be imported by includ...

14 years ago | 0

Answered
remove rows with certain element in cell arrays
Did you mean to write: x{:,3}=='Hourly' The curly-braces thing trips me up all the time =)

14 years ago | 0

| accepted

Question


Error loading TreeBagger from .MAT file in deployed app.
Hiya =) I've been browsing the forums looking for information on this... When run in MatLab my app works fine. But when i...

14 years ago | 2 answers | 0

2

answers

Question


MCC 64-bit target doesn't recognise supplied MCR
Howdy, In brief: My deployed 64-bit application complains that the correct version of MCR is not available. My application...

14 years ago | 2 answers | 0

2

answers