Community Profile

photo

Mehdi Gh


HMGU

6 total contributions since 2016

Contact

Mehdi Gh's Badges

  • First Review
  • Thankful Level 1
  • First Answer

View details...

Contributions in
View by

Question


How to obtain the Jacobian matrix (or co-variance matrix) from a multi- or global-search
Using lsqnonlin for non-linear fitting, you can obtain Jacobian matrix in the output: [x,resnorm,residual,exitflag,output,l...

2 years ago | 1 answer | 0

1

answer

Question


button callback in GUI _OpeningFcn does not update a guidata variable
Consider the following easy example: function GUI_OpeningFcn(hObject, eventdata, handles, varargin) % This function has ...

2 years ago | 1 answer | 0

1

answer

Answered
Say I have a matrix [2, 7, 8, 11, 10]. If I were to enter the number '11', how do I get matlab to display '4' (ie. the 4th element)
name your matrix first: A = [2, 7, 8, 11, 10]; in your case it is a vector! to get your hand on the 4th element (here the ...

2 years ago | 1

Answered
From Spreadsheet error: ?select range from sheet doesn't contain data?
Use xlsread with the following syntax to load your data from spreadsheet: xlsread(filename, sheetnumber, range) e.g., ...

2 years ago | 0

Question


how to use str2func inside functions that are solved by ODE45
I need to input functions as strings to the odefun that will be solved by ODE45. Problem is that the odefun takes the form of a ...

2 years ago | 1 answer | 0

1

answer

Question


Following function works as .m file but does not produce any output as function file
Hello, The following code works prefectly when run as .m file but when I want to use it as a function its output is empty! ...

3 years ago | 2 answers | 0

2

answers