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

ungefär 2 månader 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 månader 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 månader 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 månader 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...

mer än ett år 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...

mer än 2 år 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...

mer än 2 år ago | 0 answers | 0

Solved

Energy of a photon

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

mer än 2 år ago

Solved

How to subtract?

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

mer än 2 år 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 ...

mer än 3 år 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...

mer än 3 år 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...

mer än 3 år 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 ...

mer än 3 år 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...

mer än 4 år 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...

mer än 4 år 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...

nästan 5 år 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 ...

nästan 5 år 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...

nästan 5 år 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...

ungefär 5 år 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....

ungefär 5 år 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 ...

ungefär 5 år 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...

ungefär 5 år 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...

ungefär 5 år 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 ...

mer än 5 år 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...

mer än 5 år 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...

mer än 5 år 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 = ...

mer än 5 år 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...

mer än 5 år 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 =...

mer än 5 år 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, ...

mer än 5 år ago