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

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

oltre un anno 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...

oltre un anno ago | 0 answers | 0

Solved

Energy of a photon

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

oltre un anno ago

Solved

How to subtract?

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

oltre un anno 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 ...

oltre 2 anni 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...

oltre 2 anni 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...

oltre 2 anni 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 ...

oltre 2 anni 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...

oltre 3 anni 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...

oltre 3 anni 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...

circa 4 anni 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 ...

circa 4 anni 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...

circa 4 anni 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...

circa 4 anni 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....

circa 4 anni ago | 2 answers | 0

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

circa 4 anni 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...

circa 4 anni 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...

oltre 4 anni 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 ...

oltre 4 anni 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...

oltre 4 anni 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...

oltre 4 anni 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 = ...

oltre 4 anni 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...

oltre 4 anni 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 =...

oltre 4 anni 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, ...

oltre 4 anni ago

Question

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

I am currently using version 2013a on Windows but I have received a project from our old Linux server. There is a line in it wh...

oltre 4 anni ago | 1 answer | 0

Solved

Balanced number

Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...

oltre 4 anni ago

Solved

Quote Doubler

Given a string s1, find all occurrences of the single quote character and replace them with two occurrences of the single quote ...

oltre 4 anni ago

Solved

Remove all the consonants

Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

oltre 4 anni ago