Community Profile

photo

Jon


Last seen: Today Active since 2013

Statistics

  • 6 Month Streak
  • Knowledgeable Level 4
  • Pro
  • Revival Level 1
  • First Review
  • Thankful Level 2
  • First Answer

View badges

Content Feed

View by

Answered
Extract rows from a cell array based on keywords
Let say you call your cell array A, then you could do this: % make first column into numerical values rather than strings x = ...

ongeveer 13 uur ago | 0

| accepted

Answered
MATLAB/Simulink error
It looks like your problem may be that you have a SISO (single input single output) transfer function block (Gnm) but the input ...

1 dag ago | 0

| accepted

Answered
How do I access AppDesigner variables in a function that I write and call?
So I'm understanding that you have written a function and want to call it from within your appdesigner app. You then want this f...

1 dag ago | 1

Answered
How can I find the last alpha_k value?
I was just going through your code and made a corrected version. I see now that Torsten has also given you a comment that echos ...

1 dag ago | 0

| accepted

Answered
How can I find if edges in a subgraph SG appear inside/belong to a graph G?
You can name the edges in G and then the corresponding edges in the subgraph will have the same names as those in the main graph...

3 dagen ago | 1

| accepted

Answered
polynomial regression of a given function
You only solved for the coefficients. If you want to compare the original data and the fit you can do something like this, after...

4 dagen ago | 0

| accepted

Answered
Why do I recieve error when doing sinc function
If you want to plot the sinc value for a range of values then you need to pass it a vector of values. So for example: x = lins...

4 dagen ago | 0

Answered
Doubt about finding the nearest values between array and a matrix
You are overwriting the value of ID with each pass through your loop, so you only see the value for the last pass. If you want ...

4 dagen ago | 1

Answered
How do I solve an ODE of the form y'=ay^3 +by^2 +cy +d?
The ode solvers, e.g. ode45 require a function handle which will evaluate the current value of the derivative given the current ...

4 dagen ago | 0

| accepted

Answered
How to select multiple excel files with the uigetfile function?
[file_list,path_name] = uigetfile('*.xlsx','MyDialog','MultiSelect','on'); You were missing the dialog name argument, so it was...

5 dagen ago | 0

Answered
How to convert time column into a regular array?
t = seconds(A_time.Time - A_time.Time(1))

8 dagen ago | 0

Answered
"Unable to find or open 'Filename.txt'" error in MATLAB 2022a for files from a shared network drive.
Sometimes Windows loses the connection to the mapped drive. Can you still open the folder in Windows File Explorer? Sometimes it...

8 dagen ago | 0

Answered
Accessing appdesigner objects properties from a function
First, I'm not sure why you would want to just have a single button pushed callback for multiple buttons. Why not just break th...

9 dagen ago | 0

Question


Is applying a binary operator (+,-,*,/) to char arrays supported by MATLAB or just a "trick"
I recently came across the use of the following way to obtain the individual digits of a binary number as an array of doubles, f...

9 dagen ago | 5 answers | 2

5

answers

Answered
Find the Minimum Combination of Sum
If I understand what you are trying to do, I think this might work for you A = rand(100,1); % define matrix which can be mul...

9 dagen ago | 1

Answered
I want to plot graph between partial pressure of ammonia and Length but it has error.
Note that in your assignment for pNH3 the index is n, not n+1 so it only get assigned values up to the max value of n set by th...

10 dagen ago | 0

| accepted

Answered
calculate the minimum probability
Say you have three matrices of the same size A,B,C then you can find the minimum as you describe using D = min(min(A,B),C)

10 dagen ago | 0

| accepted

Answered
Why doesn't Newton's method calculate the correct temperature
Is there a reason you are using your own solver here rather than the MATLAB fzero (for function of one variable) or fsolve for s...

11 dagen ago | 0

| accepted

Answered
Simulation of random walk
It looks like you already "store the j values into the array node_visited. So it looks like you should be doing your summaries...

15 dagen ago | 0

| accepted

Answered
Check an entire matrix against each value of another matrix
If I understand what you are looking for, I think this will do it in a very simple way c = intersect(a,b) >> a = [4 3]; b = [...

15 dagen ago | 0

| accepted

Answered
How can the points of a scatter plot placed on a new matrix?
Assuming you mean by the first point, second point, etc in the scatter plot their order of appearance from left to right (along ...

15 dagen ago | 0

| accepted

Answered
How to find indices in a vector satisfying a condition for a minimum consecutive number of entries
Here's one approach. You could shorten this up a little by combining some of the individual statements into more complicated on...

16 dagen ago | 1

| accepted

Answered
Check numbers in a 5x5 array
You can also do this without any loops using MATLAB's intersect function which lists the common elements between two arrays. Hin...

16 dagen ago | 0

Answered
Can someone help me writing this equation in matlab, I appreciate,..
Here is an example where I have supplied some arbitrary values for P,N, phi and omega. You can modify with the values you actual...

17 dagen ago | 0

| accepted

Answered
Drop Down Button (App Designer) return index of repeated elements
Here's a skeleton of the logic regarding using unique. You will have to adapt details regarding getting the users selection etc....

17 dagen ago | 0

| accepted

Answered
Dimensions of arrays being concatenated are not consistent error .
There is a problem with your approach, which is setting the initial condition for the second block (the one that the switch is ...

17 dagen ago | 0

| accepted

Answered
how can i negative all value in a matrix except diagonal?
Am = -(A - diag(diag(A))) + diag(diag(A))

18 dagen ago | 1

Answered
Algorithm to calculate trajectories from a vector field
The trajectories you are seeking are solutions to a set of ordinary differential equations with initial conditions given by the ...

19 dagen ago | 1

| accepted

Answered
how to save some variables created in a loop
You need to provide a vector to collect your values in, so something like this numIterations = 10; % put total iterations here ...

19 dagen ago | 0

Answered
Tell the user something is wrong
If I understand your question, I think that you may find that you can use MATLAB's errordlg function can do what you are looking...

19 dagen ago | 0

Load more