Ghazwan
Followers: 0 Following: 0
Feeds
답변 있음
omit rows of matrix based on a condition
%If you already know that you need to omit the first and last row only A=A(2:end-1,:); %If you do not know which rows have the...
omit rows of matrix based on a condition
%If you already know that you need to omit the first and last row only A=A(2:end-1,:); %If you do not know which rows have the...
대략 2년 전 | 0
답변 있음
How to use a 'for loop' with inputs from the output of a previous equation.
gd=[-0.0256,-0.4496,-0.8929,-4.197;0.9758,0.1829,-0.1200,15.369;0.2173,-0.8743,0.4340,13.931;0,0,0,1]; gst0=[1 0 0 33; 0 1 0 -1...
How to use a 'for loop' with inputs from the output of a previous equation.
gd=[-0.0256,-0.4496,-0.8929,-4.197;0.9758,0.1829,-0.1200,15.369;0.2173,-0.8743,0.4340,13.931;0,0,0,1]; gst0=[1 0 0 33; 0 1 0 -1...
대략 2년 전 | 1
| 수락됨
답변 있음
How to add subsequent elements of a vector by a scalar and output the new scalar
A = [1 2 3 4 5 6 7 8] + 3;
How to add subsequent elements of a vector by a scalar and output the new scalar
A = [1 2 3 4 5 6 7 8] + 3;
대략 2년 전 | 0
답변 있음
Change value in Matlab table in multiple columns
Say you matrix is A A=[100x100]; for ii=1:length(A(:,1)) for jj=16:41 if A(ii, jj)==3, A(ii, jj)=0; end ...
Change value in Matlab table in multiple columns
Say you matrix is A A=[100x100]; for ii=1:length(A(:,1)) for jj=16:41 if A(ii, jj)==3, A(ii, jj)=0; end ...
대략 2년 전 | 0
답변 있음
find out negative values and specific values, take it out, record those negative and specific values into a text file
The following code should do it. Note that because of the rules you have, you have to skip the first and the last three row. A=...
find out negative values and specific values, take it out, record those negative and specific values into a text file
The following code should do it. Note that because of the rules you have, you have to skip the first and the last three row. A=...
대략 2년 전 | 0
답변 있음
How to round numbers in the matrix
Y = round(X,N) % For more info: https://www.mathworks.com/help/matlab/ref/round.html
How to round numbers in the matrix
Y = round(X,N) % For more info: https://www.mathworks.com/help/matlab/ref/round.html
대략 2년 전 | 1
| 수락됨
답변 있음
Convert .mat files to csv
xlswrite('MyFile.csv',X,1); X = is the matrix you are trying to save. 1 is the number of sheet. More info https://www.mathwork...
Convert .mat files to csv
xlswrite('MyFile.csv',X,1); X = is the matrix you are trying to save. 1 is the number of sheet. More info https://www.mathwork...
대략 2년 전 | 0
답변 있음
Modelling ODE in Simulink when input multiplied by ouput
What you are looking for is available here https://www.youtube.com/watch?v=_bzQ1Ws28cg
Modelling ODE in Simulink when input multiplied by ouput
What you are looking for is available here https://www.youtube.com/watch?v=_bzQ1Ws28cg
대략 2년 전 | 0
답변 있음
How can i put a stopping criterion for this bisection method code in matlab?
The code for the bisection method is available here https://www.mathworks.com/matlabcentral/fileexchange/72478-bisection-method...
How can i put a stopping criterion for this bisection method code in matlab?
The code for the bisection method is available here https://www.mathworks.com/matlabcentral/fileexchange/72478-bisection-method...
대략 2년 전 | 0
답변 있음
Write the matlab code for the following problem
you just need to delete this line Unrecognized function or variable 'torque'. Also, depending on the version you have, you mig...
Write the matlab code for the following problem
you just need to delete this line Unrecognized function or variable 'torque'. Also, depending on the version you have, you mig...
대략 2년 전 | 0
| 수락됨
답변 있음
How do I access and plot thetadot vs. time from function I have created?
There are several ways, one of whith would be Dtheta=diff(theta) %theta = values Dtime=diff(time) %time = time values. T...
How do I access and plot thetadot vs. time from function I have created?
There are several ways, one of whith would be Dtheta=diff(theta) %theta = values Dtime=diff(time) %time = time values. T...
대략 2년 전 | 0
답변 있음
find the interpolation of two values.
You need to have X and Y vector arrays. The X values need to incapsulate the requested points. You may use interp1 fucntion. For...
find the interpolation of two values.
You need to have X and Y vector arrays. The X values need to incapsulate the requested points. You may use interp1 fucntion. For...
대략 2년 전 | 0
답변 있음
Nesting smaller loops under a bigger loop
assuming you have the value of nrf. Another outside loop would be: sumtable=zeros(4,9); cutoff=20; for ii=1:20 %or whateve...
Nesting smaller loops under a bigger loop
assuming you have the value of nrf. Another outside loop would be: sumtable=zeros(4,9); cutoff=20; for ii=1:20 %or whateve...
대략 2년 전 | 0
답변 있음
Need to correct the matlab code for the question.
clc;clear all;close all; w=1000:10:6000; %Engine 1 a=0.03; b=7.5e-6; T=torque(w,a,b); P=T*2*pi.*w/60; figure(1) plot(w,T...
Need to correct the matlab code for the question.
clc;clear all;close all; w=1000:10:6000; %Engine 1 a=0.03; b=7.5e-6; T=torque(w,a,b); P=T*2*pi.*w/60; figure(1) plot(w,T...
대략 2년 전 | 0
| 수락됨
답변 있음
how to split a 4x3 matrix in half
Newarr1=arr1(:,1:length(arr1(1,:))/2) %Note that the number of columns has to be even
how to split a 4x3 matrix in half
Newarr1=arr1(:,1:length(arr1(1,:))/2) %Note that the number of columns has to be even
대략 2년 전 | 0
질문
Contour plot for a non rectangular object
I have this case that I worked out in another software. In the attached file, you can see the X,Y coordinates. The third colu...
대략 2년 전 | 답변 수: 1 | 1
1
답변질문
Saving incoming data while using startBackground
Dear All, I am using an NI DAQ device to get some analog signals. Simply, I need MATLAB to read and save the data in the back g...
5년 초과 전 | 답변 수: 0 | 0
0
답변질문
store previous values then use them in simulink
Hello, Let's say that I'm getting y=[1 5 7 2 3] at Time=[0 1 2 3 4 5] in a Simulink simulation. At Time=6, I would like to use...
대략 7년 전 | 답변 수: 1 | 0
1
답변질문
Error when deploying simulink model to Arduino
Hello I'm using the built-in example of MATLAB to make an LED blink with Arduino. When I deploy it, it gives me a big error. I a...
7년 초과 전 | 답변 수: 3 | 0
3
답변질문
Running four different independent scripts in parallel
Hello, I have a four cores machine, and I need to run a matlab code on each one of them. Say, I want the four files to run on e...
7년 초과 전 | 답변 수: 1 | 0
1
답변질문
Set of ODEs with an additional condition
Hello, Let's say we have the following system of equations: x'=x+sin(y) y'=y+x And we know the boundary conditions. Also, we...
대략 8년 전 | 답변 수: 2 | 0
2
답변질문
Parameter that depends on a State Variable
Hello, I have the following main code clear all; global a1 b1 c1 P0 Sr2 a1=0.01; b1= 4.13; c1=1.250; Sr2=24.83683 ...
대략 8년 전 | 답변 수: 1 | 0