Question

Compile for multiple versions of the MCR?

I don't know if this is possible. I want to compile from Matlab and target multiple MCR versions. Similar to the way that Andr...

2 months ago | 0 answers | 0

Question

Colormap for multline plot

How do I change the colormap of a multiline plot and have it change the colors of the existing lines? I am using Matlab 2018b. ...

3 months ago | 3 answers | 0

Question

File size increase 100 fold when going to MAT-File 7.3

I have some software that comes to me as pcode from another team. The save command has not changed between deliveries. It is s...

8 months ago | 1 answer | 0

Question

MCR_CACHE_ROOT not working with 2016

I have a Matlab routine that I have compiled as a standalone executable for use on a Linux computing cluster running PBSPro. Th...

10 months ago | 1 answer | 0

Question

How to determine which libraries to include when using Matlab C++ API?

Given the example file matcreat.cpp on linux with GCC and Matlab installed correctly. I can link with .... -L<matlab_root>/bi...

1 year ago | 0 answers | 0

Answered

How to operate on multiple function outputs?

I found a workaround. Hopefully someone will come here and find a better option. I wrapped the dcm2angle function in another f...

How to operate on multiple function outputs?

I found a workaround. Hopefully someone will come here and find a better option. I wrapped the dcm2angle function in another f...

2 years ago | 0

| accepted

Question

Does MATLAB assume endian?

I have a piece of code that I wrote to read the MAT-File based on the pdf found here: https://www.mathworks.com/help/pdf_doc/mat...

2 years ago | 0 answers | 0

Solved

Energy of a photon

*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛* Given the frequency F of a photon in giga hertz. Find energy E of this...

2 years ago

Solved

How to subtract?

*± ± ± ± ± ± ± ± ± ± ±* * Imagine you need to subtract one...

2 years ago

Solved

Use R2016b Text Manipulations to Fix These Addresses (Part 3)

We have a series of addresses like the following which we'd like to reformat. Each of the addresses lacks a space and a comma ...

3 years ago

Solved

Use R2016b Text Manipulations to Fix These Addresses (Part 2)

We have a series of addresses like the following which we'd like to reformat. All the addresses are in the Boston area of Mass...

3 years ago

Solved

Use R2016b Text Manipulations to Fix These Addresses (Part 1)

We have a series of addresses like the following which we'd like to reformat. Can you remove the latitude and longitude from the...

3 years ago

Solved

When Was That Goal Scored?

We want to find out when the goals were scored in a particular soccer game. For each game, we are given a "Goal Event Data" XML ...

3 years ago

Question

Set edit uicontrol to last line

I used to do this by using: h = uicontrol(....); j = findjobj(h); je = j.getComponent(0).getComponent(0); je.setCa...

4 years ago | 1 answer | 0

Question

ActiveX object error when user switches or interacts with active Excel window

I have a compiled application that uses Excel to make spreadsheets for another team to use. The connection is created like this...

4 years ago | 0 answers | 0

Question

Redirect compiled GUI error/output information

I have a GUI under development that throws errors. This is by design to test some error handling/recovery methods. The problem...

5 years ago | 0 answers | 0

Question

fileattrib is returning the wrong (incorrect) results

I have a GUI that asks the user via uigetdir for the location for some output files. As a check I want to be sure the user can ...

5 years ago | 1 answer | 0

Question

How to pass inputs to compiled matlab function with internal input statements?

I have: path1=input('Project Directory: ', 's'); dirname=input('Case Directory: ', 's'); filename=input('OPER Filenam...

5 years ago | 1 answer | 0

Answered

How to selectExcel columns through Matlab activeX control?

So the best way I found to do this was to access the columns through the Range of the ActiveSheet. command = sprintf('%s:%s...

How to selectExcel columns through Matlab activeX control?

So the best way I found to do this was to access the columns through the Range of the ActiveSheet. command = sprintf('%s:%s...

5 years ago | 0

| accepted

Question

How to selectExcel columns through Matlab activeX control?

In Excel VBA I can create groups by using: Columns(3).Resize(, 4).Group This will make columns 3 through 7 into a group....

5 years ago | 2 answers | 1

Answered

fopen in text mode ('rt') giving wierd results

As Bruno Pop-Stefanov pointed out the problem is opening a binary file in text mode on Windows. The behavior seen was expected ...

fopen in text mode ('rt') giving wierd results

As Bruno Pop-Stefanov pointed out the problem is opening a binary file in text mode on Windows. The behavior seen was expected ...

5 years ago | 0

| accepted

Question

I need an efficient way to color Excel cells based on value using Matlab activeX control

I currently process many hundreds of files each with about 24,000 data points. The processed results are then delivered to anot...

5 years ago | 0 answers | 0

Solved

Trimming Spaces

Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

5 years ago

Solved

Return a list sorted by number of occurrences

Given a vector x, return a vector y of the unique values in x sorted by the number of occurrences in x. Ties are resolved by a ...

5 years ago

Solved

Which doors are open?

There are n doors in an alley. Initially they are all shut. You have been tasked to go down the alley n times, and open/shut the...

5 years ago

Solved

Reverse Run-Length Encoder

Given a "counting sequence" vector x, construct the original sequence y. A counting sequence is formed by "counting" the entrie...

5 years ago

Solved

Making change

Given an amount of currency, return a vector of this form: [100 50 20 10 5 2 1 0.5 0.25 0.1 0.05 0.01] Example: Input a = ...

5 years ago

Solved

Counting Money

Add the numbers given in the cell array of strings. The strings represent amounts of money using this notation: $99,999.99. E...

5 years ago

Solved

De-dupe

Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

5 years ago

Solved

Elapsed Time

Given two date strings d1 and d2 of the form yyyy/mm/dd HH:MM:SS (assume hours HH is in 24 hour mode), determine how much time, ...

5 years ago