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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 1

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

más de 5 años hace | 0

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

más de 5 años hace | 2

| aceptada

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

más de 5 años hace | 1

| aceptada

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

más de 5 años hace | 0

| aceptada

Pregunta


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

más de 5 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 5 años hace | 1 respuesta | 0

1

respuesta

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 1

Resuelto


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.

más de 5 años hace

Resuelto


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

más de 5 años hace

Pregunta


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

más de 5 años hace | 1 respuesta | 0

1

respuesta

Pregunta


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

más de 5 años hace | 2 respuestas | 0

2

respuestas

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

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

más de 5 años hace | 0

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

más de 5 años hace | 0

| aceptada

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

más de 5 años hace | 0

| aceptada

Cargar más