Answered
How do i create Apply Boundary Conditions
It seems that you know force boundary conditions for your nodes. Following the equation: [K] {u} = {F} You do not know your d...

5 years ago | 0

| accepted

Answered
Two questions about my code: 1.) Estimating random number with and without rng ('shuffle'); 2.) storaging results
I agree with Dana and David. Here's my contribution to the rand as well. >> rand ans = 0.8147 About the second question:...

5 years ago | 1

Answered
How can I link Aspen plus and matlab
Bolded text might be the error. See the documentation on FindNode function. Aspen.Tree.FindNode("\Data\Blocks\T-101\Input\BASIS...

5 years ago | 0

Answered
Write in a file, one ligne before the last one
With this, you'll get contents of the file in File_Data which is a cell size (ii,1) with character arrays. FID = fopen('test.tx...

5 years ago | 0

Answered
Can I freeze first row and/or column in uitable?
I am also not familiar with the freeze panel. To eliminate the scrolling effect in UITable, set your ColumnWidth values to desir...

5 years ago | 0

Answered
How to verify a specific user input (excel array)
Do the xlsread of these particular cells, save them in an array and use the validateattributes function, or if you have specific...

5 years ago | 0

Answered
How to organize a project?
Do you want to put project parts in \projectpath\folder1\filesforpart1.m, \projectpath\folder2\filesforpart2.m or would you like...

5 years ago | 0

| accepted

Answered
Scrolling down drop down list
app.DisplayDropDown.Items = app.Legend_Str; % This is cell 1xn that contains char arrays This works for me. I believe it appear...

5 years ago | 1

Answered
How to remove space between code and editor's left side
I think that's default, I have just checked options, and there is not such option to reduce that "whitespace", which exists, I b...

5 years ago | 0

Answered
Enable / disable EditText in APP Designer
You might not see the FieldLabel in your component browser, right click there and tick the option 'Enable component labels...' ...

5 years ago | 2

| accepted

Answered
Get the status using system(command &) when program has been closed
Here's an example with simple app. Process = System.Diagnostics.Process; Process.Start('notepad.exe'); % You can check if ...

5 years ago | 1

| accepted

Answered
System and System.Diagnostics.Process
See my answer here as well https://www.mathworks.com/matlabcentral/answers/583955-get-the-status-using-system-command-when-progr...

5 years ago | 0

| accepted

Question


Get the status using system(command &) when program has been closed
Hello guys, I have another question to ask for today. I am running an .exe file that takes some time to finish and to output ...

5 years ago | 1 answer | 0

1

answer

Question


App Designer terminate an execution of a function
Hello guys, I am working on an application with App Designer where I am running a script that's running an optimisation problem...

5 years ago | 1 answer | 0

1

answer

Answered
How can i solve and plot this problem
Use function fplot fplot(f,[xmin xmax]); % plots f over the interval [xmin xmax].

5 years ago | 0

| accepted

Answered
Error:Too many input arguments in GA solver
function y = simple_fitness(x) y = 100 * (x(1)^2 - x(2)) ^2 + (1 - x(1))^2; end rng default % For reproducibility numberOf...

5 years ago | 0

| accepted

Answered
How can i get the last element of a maxium with the help of findpeaks?
According to documentation, variable you named pks is a vector that contains values you need. You just need to call the last ele...

5 years ago | 0

Answered
How to identify the location of a cell that meets a specific quantity condition
[x, y] = find (matrix > value)

5 years ago | 0

| accepted

Answered
How to read multiple text files and plot data?
Here's some code that you can read the data from the .txt files, I haven't seen yours so it might not work properly on it. Data_...

5 years ago | 0

Answered
Problem in opening and Reading a Binarydata file ??
fileID = fopen('dspCW2datav2.bin'); A = fread(fileID) Never tried opening bin files, but this should be working. Function frea...

5 years ago | 0

Answered
Import text data from Comsol
As recommended by Jonas, it is probably the best to use the COMSOL - MATLAB Link. clc clear fclose all Counter = 1; FID =...

5 years ago | 1

Solved


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

5 years ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

5 years ago

Question


Sorting unique colors from the image (much simplified now)
Hello everyone, Code uses rgb2hex and hex2rgb from FEX, I might be doing unecessary work with this, but let it be for now - htt...

5 years ago | 1 answer | 0

1

answer

Question


Passing variable from anonymous objective function to main workspace
Hello guys, I have a quick and simple question for you about passing variables from anonymous objective functions. [x, fval] = ...

5 years ago | 2 answers | 0

2

answers

Answered
can I import a .his file to MATLAB?
Function that only imports .his files into array File Exchange

5 years ago | 0

| accepted

Answered
Multiplying elements from various tables to create a third table
Check if it gives correct output. C = (A(:,2)'.*B)';

5 years ago | 0

Answered
How to import a csv file with multiple headers and variable data leghts between headers
C = table2array((g_clean_table(:,1))); % Convert the rows of the first column into an array x = find(C>=0) % this removes nan ...

5 years ago | 0

Answered
Hello, I'd like to ask you something concerning optimization communicating with aspen HYSYS
I did something similar, you should put all this code related to Hysys into your function 'Objective', and then call it as an an...

5 years ago | 0

| accepted

Answered
How can one do this calculation?
clearvars; clc; A = [1 1 10 1 2 39 1 3 24 1 4 7 1 5 41 2 1 69 2 2 73 2 3 121 2 4 10 2 5 7 3 1 9 3 2 15 3 3 100 ...

5 years ago | 0

| accepted

Load more