Answered
problem with automized add_block destinations
you are accessing to your stored created block names in strings via their index numbers. That is it.

6 years ago | 0

Answered
Matlab workspace not showing the cell contents
Hi, In the first picture you have accessed the matrix (variable called: f: 1x256 ) not a cell array see the hilighted. In the...

6 years ago | 0

Answered
How to print some text in a txt file in another folder?
use: cd('../') That moves one level up. Don't forget to hit accept :)

6 years ago | 0

| accepted

Answered
How to print some text in a txt file in another folder?
Please try this code: remove the created folder solutions: if ~exist('Solutions', 'dir') mkdir('Solutions') cd('./...

6 years ago | 0

Answered
How to print some text in a txt file in another folder?
Hi, You are almost there except for one missing point, see below: if ~exist('Solutions', 'dir') mkdir('Solutions') c...

6 years ago | 0

Answered
can u help me about square pliss, iam using matlab 2018a
use this command: s1=square(2*pi*5*t); % MATLAB is case sensitive!

6 years ago | 0

Answered
Is there a function I can use to find out when a statement is true?
in your case, if ... else ... end structure should work very well.

6 years ago | 0

Answered
Speed up for loop
To process date data format is slow. Thus, you can convert all into a serial date number using datenum() that shall speed up the...

6 years ago | 1

Answered
How to write this?
did you define dt? if not, you have to

6 years ago | 0

Answered
extract data based on certain range of other coloumn
The answer is quite simple; Import data: D=xlsread('data.xlsx'); Sort out the data w.r.t the conditions using logical indexing...

6 years ago | 0

| accepted

Answered
How to write this?
timeinterval = dt; % not 1/dt that would be sampling frequency

6 years ago | 0

Answered
How to draw a tangent line to the curve?(tangent line has to pass through origin)
One quich-n-easy solution graphically is to use ginput() by which you can select two or more points and then plot the selected d...

6 years ago | 0

Answered
How can I get my loop to stop at the right value?
yes, the structure should be as: while ... if ... break else continue end end

6 years ago | 0

| accepted

Answered
How can I get my loop to stop at the right value?
Hi, You can use if break operator to set the conditions to halt your iterative simulation process.

6 years ago | 0

Answered
Function not accepting all available x values
y = 4*x.*(x+1) ./ (4*x.*(x+1) + (sin( 8*sqrt(x+1) )).^2);

6 years ago | 1

| accepted

Answered
Integral wind-up and anti-wind-up circuits
hi To get the plot in your shown figure, you should run your simulink model that gives the data (ytemp from simout block) in...

6 years ago | 0

Answered
How to find global minimum of a schwefel function
You can try optimization toolbox's fsolve nonlinear equation solver with "Trust region dogleg" algorithm.

6 years ago | 0

Question


Error Simulating Model When Enabling the 3D Engine with the Vehicle Dynamics Blockset in MATLAB R2019b
Hi Mathworks Developers and active users, I have read this post on the 3D engine problem when it is enabled. However, the pro...

6 years ago | 1 answer | 0

1

answer

Answered
How can you plot the output of a for loop?
Hi, if I have understood your exercise correctly, you'd like to plot the year vs. average values of the variable TG. If so h...

6 years ago | 0

| accepted

Answered
How can you plot the output of a for loop?
I see your mat contains bunch of data. All variables are of the same size 3635-by-1. So you wish to plot what variable vs. what ...

6 years ago | 0

Answered
How can you plot the output of a for loop?
Can you share your data file in order to be able to address your question correctly?

6 years ago | 0

Answered
find a minima in a symbolic equations that have multiple symbolic variables and a stochastic variable
I think the problem in equation diff11 that you are trying to solve it for two unknowns.

6 years ago | 0

Solved


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

6 years ago

Solved


Convert radians to degrees
Given input in radians, output to degrees

6 years ago

Solved


Perimeter of a semicircle
Given the diameter d, find the perimeter of a semicircle

6 years ago

Solved


Given a square and a circle, please decide whether the square covers more area.
You know the side of a square and the diameter of a circle, please decide whether the square covers more area.

6 years ago

Solved


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...

6 years ago

Answered
how to fix Summation index error?
Use this command: symsum(symsum((vectors(:,m)*(vectors(:,n)')))) instead of: symsum(symsum((vectors(:,m)*(vectors(:,n)')),m,...

6 years ago | 0

| accepted

Answered
How do I plot timeseries, including event like earthquake?
Here is corrected code: fileID = fopen('filename.txt', 'r'); C = textscan(fileID, '%s %f'); % Presumably your file does no...

6 years ago | 0

Answered
How do I plot timeseries, including event like earthquake?
Hi, In this case, use one of these data import options: (1) data import using uiimport('DATA_file_name.txt') that creates a ...

6 years ago | 0

Load more