![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/6726181_1522117276143_DEF.jpg)
sam0037
MathWorks
自 2015 起处于活动状态
Followers: 0 Following: 0
All opinion expressed here are that of my own.
Professional Interests: Computer Science
Feeds
已回答
Matlab coder doesn't work with commands like try, { , so is there any way to fix it?
Hi Refer to the following linkto know about Functions and Objects Supported for C and C++ Code Generation: http://www.mat...
Matlab coder doesn't work with commands like try, { , so is there any way to fix it?
Hi Refer to the following linkto know about Functions and Objects Supported for C and C++ Code Generation: http://www.mat...
8 years 前 | 0
已回答
How can I run a function in parallel and return the compiled output of the function?
Hi, One way to achieve this would be to create a set of jobs and submit to your parallel cluster for execution. Refer to the ...
How can I run a function in parallel and return the compiled output of the function?
Hi, One way to achieve this would be to create a set of jobs and submit to your parallel cluster for execution. Refer to the ...
8 years 前 | 1
| 已接受
已回答
How to transfer data between apps using app designer
Hi, You can use public properties as explained in the link below to share data between apps. And you can add a closeRequestFc...
How to transfer data between apps using app designer
Hi, You can use public properties as explained in the link below to share data between apps. And you can add a closeRequestFc...
8 years 前 | 1
已回答
How to get Bus details from an output port using MATLAB and not Simulink?
Hi, Following link will help in getting the BUS details programatically: <http://www.mathworks.com/help/simulink/ug/buses....
How to get Bus details from an output port using MATLAB and not Simulink?
Hi, Following link will help in getting the BUS details programatically: <http://www.mathworks.com/help/simulink/ug/buses....
8 years 前 | 0
已回答
how to define an anonymous function in spmd block?
Hi, As per this documentation <http://www.mathworks.com/help/distcomp/programming-tips_brukbnp-9.html#brukbnp-12 link> , the ...
how to define an anonymous function in spmd block?
Hi, As per this documentation <http://www.mathworks.com/help/distcomp/programming-tips_brukbnp-9.html#brukbnp-12 link> , the ...
8 years 前 | 1
已回答
Why does program execution hang when using "pause?"
Hi, This is a bug which only occurs in Windows 10. Using Space key to come out of pause mode works, but if Enter key is used ...
Why does program execution hang when using "pause?"
Hi, This is a bug which only occurs in Windows 10. Using Space key to come out of pause mode works, but if Enter key is used ...
8 years 前 | 0
| 已接受
已回答
Error in alternateGetframe when creating a video in a large for loop
Hi, I was able to create a video using nFrames = 10000 in MATLAB R2015b. I did make a couple of changes to the above code. I ...
Error in alternateGetframe when creating a video in a large for loop
Hi, I was able to create a video using nFrames = 10000 in MATLAB R2015b. I did make a couple of changes to the above code. I ...
8 years 前 | 0
已回答
What is the best way to implement Class Diagrams in Simulink&Stateflow ? What is the equivalent of classes representation in Stateflow?
Hi, This <http://www.mathworks.com/videos/hybrid-software-development-with-simulink-and-uml-tools-68870.html link> talks abou...
What is the best way to implement Class Diagrams in Simulink&Stateflow ? What is the equivalent of classes representation in Stateflow?
Hi, This <http://www.mathworks.com/videos/hybrid-software-development-with-simulink-and-uml-tools-68870.html link> talks abou...
8 years 前 | 0
已回答
How can I fasten my code?
Hi, Let us break this work into two parts say 'Code Re-Designing' and 'Algorithm Re-Designing'. *Part 1 :: Code Re-Design...
How can I fasten my code?
Hi, Let us break this work into two parts say 'Code Re-Designing' and 'Algorithm Re-Designing'. *Part 1 :: Code Re-Design...
8 years 前 | 0
| 已接受
已回答
How to input a half sine pulse force with varying loads for different time variables?
Hi, You can define your load in the following way: delt = 0.1; t = [0:delt:2]'; P = 10*sin(pi*t/0.6); %input loa...
How to input a half sine pulse force with varying loads for different time variables?
Hi, You can define your load in the following way: delt = 0.1; t = [0:delt:2]'; P = 10*sin(pi*t/0.6); %input loa...
8 years 前 | 0
已回答
I would like to make an equation to solve t when T_max is equal to 450
Hi, Appending these three commands to your code will do the magic: eqn = T_max == 450; res = solve(eqn,t); val = d...
I would like to make an equation to solve t when T_max is equal to 450
Hi, Appending these three commands to your code will do the magic: eqn = T_max == 450; res = solve(eqn,t); val = d...
8 years 前 | 0
已回答
How to Store Variable Names for Struct Titles
Hi, To dynamically name the fields of struct depending on the name of the inputs to the function, you can use the ' <http://w...
How to Store Variable Names for Struct Titles
Hi, To dynamically name the fields of struct depending on the name of the inputs to the function, you can use the ' <http://w...
8 years 前 | 1
| 已接受
已回答
Applying rotation matrix on inclined plane
Hi, My understanding is that you would like to rotate this given plane (which passes through origin) such that the normal of ...
Applying rotation matrix on inclined plane
Hi, My understanding is that you would like to rotate this given plane (which passes through origin) such that the normal of ...
8 years 前 | 0
| 已接受
已回答
approximate the value of π using the following algorithm based on geometric probability. This algorithm is an example of the so called monte carlo method
Hi, The code seems to work fine for computing PI using Hit & Miss Monte Carlo algorithm. In this code the variable 'c' is the...
approximate the value of π using the following algorithm based on geometric probability. This algorithm is an example of the so called monte carlo method
Hi, The code seems to work fine for computing PI using Hit & Miss Monte Carlo algorithm. In this code the variable 'c' is the...
8 years 前 | 0
| 已接受
已回答
Looping and Saving Values into an Array for Forward Euler Method Using While Loop
Hi, This can be achieved by calling a function repeatedly to perform the same task but for different values. To illustrate ...
Looping and Saving Values into an Array for Forward Euler Method Using While Loop
Hi, This can be achieved by calling a function repeatedly to perform the same task but for different values. To illustrate ...
8 years 前 | 0
已回答
How do I repeat a row a certain number of times?
Hi, This can be also done using the REPELEM command as follows: v = [1:4]; repelem(v,[3],[1]) Follow the link below ...
How do I repeat a row a certain number of times?
Hi, This can be also done using the REPELEM command as follows: v = [1:4]; repelem(v,[3],[1]) Follow the link below ...
8 years 前 | 2
已回答
Matlab Parallel Toolbox Workers Aborted - continue serially?
Hi, An SpmdEnabled pool cannot continue once communication between workers or between workers and client has been lost. If yo...
Matlab Parallel Toolbox Workers Aborted - continue serially?
Hi, An SpmdEnabled pool cannot continue once communication between workers or between workers and client has been lost. If yo...
8 years 前 | 2
已回答
Problem with while loop and matrix size.
Hi, It seems you are trying to access A(6) i.e. the sixth element in the array A and hence MATLAB is throwing an error. This ...
Problem with while loop and matrix size.
Hi, It seems you are trying to access A(6) i.e. the sixth element in the array A and hence MATLAB is throwing an error. This ...
8 years 前 | 1
已回答
Get values from another GUI using handles or getapp / setapp
Hi, There are multiple ways of sharing data between GUIs. To illustrate one of the ways, I have created test1 and test2 GUIs...
Get values from another GUI using handles or getapp / setapp
Hi, There are multiple ways of sharing data between GUIs. To illustrate one of the ways, I have created test1 and test2 GUIs...
8 years 前 | 0
已回答
Problem with GUI resolution issues.
Hi, If you consider using UNITS as NORMALIZED rather than CHARACTERS then this should resolve the issue. Also, do not deactiv...
Problem with GUI resolution issues.
Hi, If you consider using UNITS as NORMALIZED rather than CHARACTERS then this should resolve the issue. Also, do not deactiv...
8 years 前 | 0
已回答
modeling the program in matlab before coding
Hi Mahdi, This <http://www.mathworks.com/videos/hybrid-software-development-with-simulink-and-uml-tools-68870.html link> talk...
modeling the program in matlab before coding
Hi Mahdi, This <http://www.mathworks.com/videos/hybrid-software-development-with-simulink-and-uml-tools-68870.html link> talk...
8 years 前 | 0
| 已接受
已回答
dfield6 errors with Matlab 2015
Hi, I tried debugging the attached code DFIELD6.M and could reproduce the above mentioned errors. If you replace all *if not...
dfield6 errors with Matlab 2015
Hi, I tried debugging the attached code DFIELD6.M and could reproduce the above mentioned errors. If you replace all *if not...
8 years 前 | 1
已回答
Irregular (long-)time series is to be interpolated as well mean value and standard deviation to be calculated. How?
Hi Endric, # To interpolate the values for every minute you can use the INTERP1 function as explained <http://www.mathworks.c...
Irregular (long-)time series is to be interpolated as well mean value and standard deviation to be calculated. How?
Hi Endric, # To interpolate the values for every minute you can use the INTERP1 function as explained <http://www.mathworks.c...
8 years 前 | 0
已回答
how to avoid overlapping when drawing dots using screen function?
Hi Jinyi, I do not have a Psychtoolbox installed currently and hence cannot reproduce this issue. But from the above code, I ...
how to avoid overlapping when drawing dots using screen function?
Hi Jinyi, I do not have a Psychtoolbox installed currently and hence cannot reproduce this issue. But from the above code, I ...
8 years 前 | 0
已回答
How to change the ODE to be solved for different ranges in ODE45
Hi Marius, In this case both ODE1 and ODE2 can be represented in a single function by a minor change. Replace alpha with aplh...
How to change the ODE to be solved for different ranges in ODE45
Hi Marius, In this case both ODE1 and ODE2 can be represented in a single function by a minor change. Replace alpha with aplh...
8 years 前 | 0
已回答
Change default IDE layout
Hi James, The most recently used layout is generally loaded in MATLAB R2015b too. I have tried the same successfully. You can...
Change default IDE layout
Hi James, The most recently used layout is generally loaded in MATLAB R2015b too. I have tried the same successfully. You can...
8 years 前 | 1
| 已接受
已回答
Value does not get updated the way it should in for loop
1. The 'Tip_Position_Output' will not increase/decrease by 'a' only while moving along the array 'Tip_Position_Output'. But the ...
Value does not get updated the way it should in for loop
1. The 'Tip_Position_Output' will not increase/decrease by 'a' only while moving along the array 'Tip_Position_Output'. But the ...
8 years 前 | 0
已回答
How can I make this code more efficient?
Hi, A good approach to study the performance of the above code would be to use a profiler. The profiler would expose the comp...
How can I make this code more efficient?
Hi, A good approach to study the performance of the above code would be to use a profiler. The profiler would expose the comp...
8 years 前 | 1
| 已接受
已回答
MATLAB RK METHOD NOT GIVING ANY RESULT
It seems you are trying to build a GUI with callbacks which share data among them, but while trying to do this you do not observ...
MATLAB RK METHOD NOT GIVING ANY RESULT
It seems you are trying to build a GUI with callbacks which share data among them, but while trying to do this you do not observ...
8 years 前 | 0
已回答
Burned in annotations Dicom
I understand that you want to extract manual burned in annotations from a DICOM file and by annotations you mean the METADATA of...
Burned in annotations Dicom
I understand that you want to extract manual burned in annotations from a DICOM file and by annotations you mean the METADATA of...
8 years 前 | 0