Answered
concatenating matrices
Hi Maithili, just a warning: the final matrix will need 24000*24000*8/(1024^3)GB, so approx 4.3 GB of memory. Should work but...

14 years ago | 0

Answered
using the values in popup menu function in pushbutton_callback
Hi, you have two options: either, the popupmenu1_Callback stores the values for I, V, p using e.g. guidata and the pushbutton...

14 years ago | 0

| accepted

Answered
numerical integration
Hi, I would suggest to compute the position of the singularity (e.g. using fzero) and try quadgk on the left integral and the...

14 years ago | 0

Answered
selecting multiple strinfs of variables
Hi Stef, I guess you are looking for ismember: ismember(mdata(:,2), {'b1' 'b2'}) Titus

14 years ago | 0

| accepted

Answered
ERROR IN MATLAB CODER...
Hi, it looks as if the demo fails (and echodemo does not produce a "nice" error message). I would suggest to run the demo jus...

14 years ago | 2

Answered
Fixed point (matematice)
Hi, and in addition to Richards observation: it's always not a bad idea to do something like iter = 0; maxIter = 50; ...

14 years ago | 0

Answered
Number and alphabet
Hi, you can use isvarname for this purpose, something like str = get(handles.edit1, 'string'); if isvarname(str)) ...

14 years ago | 1

Answered
How to get a directory size
Hi Karine, you are right, MATLAB does not compute the size of a folder: the bytes for directories are always zero. You wil...

14 years ago | 0

Answered
Code Error - Matrix dimensions must agree
Hi, and what about A1, E1, R? Are they 1x1 as well or is one of them a vecotr/matrix? Titus

14 years ago | 0

| accepted

Answered
Matlab standalone executable deployment- error using phantom function
Hi Sabya, just a guess: you know that input parameters to standalone applications are always passed as strings? This can be h...

14 years ago | 2

Answered
can't find Matlab coder generated mexFunction
Hi, perhaps the third computer is a 32bit MATLAB/Windows? Just enter mexext in the 3rd computer. If it returns mexw32...

14 years ago | 0

Answered
errror using uigetdir
Hi, if you take a look at TestFiles(1).name you will see the ".", which is the current folder. Several possibilities: if you ...

14 years ago | 0

| accepted

Answered
message length
Hi Vino, if you do edit msgbox you will see at line 274 (at least in R2012a I'm looking at) a call to textwrap with a...

14 years ago | 1

| accepted

Answered
load
Hi Tor, if you want to load to a variable you need to use the functional form, i.e., TRD = load('Trondheim_MT_Daily.txt...

14 years ago | 0

Answered
load
Hi Tor, I don't 100% understand the question: .txt is just as .dat or similar an "indicator" that it's a text file (ascii, no...

14 years ago | 0

| accepted

Answered
How to define parameters of masked subsystem as tunable parameters (for code generation using Embedded coder)
Hi Genin, they should appear: if you use workspace variables for your subsystem mask parameters, those variables should appea...

14 years ago | 0

Answered
removing case sensitivity in matlab
Hi Som, No, there is no way to change this. Older versions used to be more tolerant to casing but today casing is required. O...

14 years ago | 1

Answered
first forward and backward central diference
Hi, o.k., let's start with the h: 0:t:10^-5 will be the zero. Start with e.g. h = 0.01; Take a look at the ch...

14 years ago | 0

Answered
how to inherit the data type of the inputs in a C Mex Sfunction
Hi Grapevine, yes, that's right. You will need to register the mdlSetOutputPortDataType function, see matlabroot\simulink\src...

14 years ago | 1

| accepted

Solved


Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...

14 years ago

Solved


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

14 years ago

Solved


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

14 years ago

Solved


Swap the input arguments
Write a two-input, two-output function that swaps its two input arguments. For example: [q,r] = swap(5,10) returns q = ...

14 years ago

Answered
Using embedded matlab funciton to find high accuracy derivative
Hi, this is a misunderstanding of how Simulink works: Simulink computes every timestep on it's own. So when your embedded MAT...

14 years ago | 1

| accepted

Answered
Dynamically add edit boxes using uicontrol and how to get the reference
Hi, * add the handle from the uicontrol to the handles structure: handles.edit = zeros(1, 10); handles.edit(i) = uico...

14 years ago | 1

| accepted

Answered
Parfor on GPU
Hi Sampath, probably not. I guess it would make not much sense anyway, because the two functions would share the same computa...

14 years ago | 0

Answered
array to matrix
Hi Som, the function you are looking for is named repmat Titus

14 years ago | 0

Answered
Help using MatLab coder.
Hi, when compiling to an executable you need to provide a main function (a file containing void main() { /* call the...

14 years ago | 0

Answered
Simulink - simulation time slows WAY down and information omitted from scope
Hi, you are most likely changing the problem to be stiff as Kaustubha wrote, therefore try e.g. ode15s which should make larg...

14 years ago | 0

| accepted

Answered
Programatically test-run a model before RTW build
Hi, without solving the problem (I guess) I would suggest to modify the code to feval(ThisModel, [], [], [], 'compile');...

14 years ago | 0

Load more