photo

Mrinal Anand


Last seen: 1 year ago Active since 2023

Followers: 0   Following: 0

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
Create an Array of different Size Structs that have the same information
You can create a struct of structs and use loops to access the inner structs' fields. Here is an example using the code sample t...

1 year ago | 0

Answered
Import values having different units in matlab
Matlab plotting functions assume that the plotting data is given in Cartesian coordinates by default. So you need to convert you...

1 year ago | 0

Answered
How to concatenate vectors indexed with a for loop?
As per my understanding you want your above code to run in a loop with "trialNum" ranging from 1 to the desired number of iterat...

1 year ago | 0

Answered
Getting recent files in Matlab
You can check your computer's recycle bin or trash folder to see if the files were accidentally deleted and are recoverable from...

1 year ago | 0

Answered
how to connect existing matlab code (.m) file with app designer in matlab?
As Rik mentioned, you can simply call functions from .m files in the App Designer callbacks/functions. Ensure that the App Desig...

1 year ago | 0

Answered
how can i combine 3 dimensional data and use pca function?
You can try changing the range of longitudes in the m_proj function to include a longer range of longitudinal values: m_proj('l...

1 year ago | 0

Answered
I get complex numbers while using "acosd" function
You are getting a complex number because the acosd() function is only defined for values in the range of [-1, 1]. If the functio...

1 year ago | 1

Answered
if condition in the case where char is empty
You can use the isempty() function in Matlab to accomplish your task: name = ''; % empty char variable if isempty(name) n...

1 year ago | 1

| accepted

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values.
The error is because you have indexed t and y without initializing them as arrays: t(1)=0; y(1)=0; Your for loop required 25 ...

1 year ago | 0

Answered
I can not find Model Linearizer under Control Systems
The Control Systems Add-on does not have Model Linearizer. It is a part of the Simulink Control Design Add-on. You can have a lo...

1 year ago | 0

Answered
How can I model large automata?
You can use Stateflow Toolbox in Simulink to model the automata. However, modeling a large automata in MATLAB and Stateflow can ...

1 year ago | 0

Answered
Does the Matlab 2023a support the NVIDIA RTX 4090-24G GPU device?
Yes, the 2023a version does support RTX 4090 GPU. You can have a look at the GPU Computing Requirements documentation to get mor...

1 year ago | 0

| accepted

Answered
Why am I getting two different data arrays with the same set of data?
I tried running your sample testing script and it says the datasets have incompatible sizes. This could be because you are runni...

1 year ago | 1

| accepted

Answered
Error in the program at startup
The error is because of the line: yy = f Since f is a function and you want to plot it f(xx), the line should be: yy = f(xx) ...

1 year ago | 0

Answered
Vertical gauge in Simulink
The Vertical Gauge does not support multiple signals, but you can use a Multi-Port Switch block with multiple input signals to s...

1 year ago | 0

| accepted