Feeds
已回答
How can I store a value from each iteration of a for loop, ready for plotting?
you can store values like this. height = 150; velocity = 0; acceleration = -9.81; bounce_factor = -0.4; ...
How can I store a value from each iteration of a for loop, ready for plotting?
you can store values like this. height = 150; velocity = 0; acceleration = -9.81; bounce_factor = -0.4; ...
7 years 前 | 1
已回答
Find min in matrix given specific rows and columns?
You can use this. minRow = min(min(A(r, :))); minCol = min(min(A(:, c)));
Find min in matrix given specific rows and columns?
You can use this. minRow = min(min(A(r, :))); minCol = min(min(A(:, c)));
7 years 前 | 0
已回答
Find a particular value in an Excel sheet (Activex or xlsread?)
You can get the index below way. [~,txt,~] = xlsread('Filename'); [row,col] = find(cellfun('length',regexp(txt,'31.5 H...
Find a particular value in an Excel sheet (Activex or xlsread?)
You can get the index below way. [~,txt,~] = xlsread('Filename'); [row,col] = find(cellfun('length',regexp(txt,'31.5 H...
7 years 前 | 3
| 已接受
已回答
s2y not working for 4x4 matrix
I think its because you are passing 3x3 matrix. As per the s2t function guideline input supposed to be 2x2 matrix. s2t
s2y not working for 4x4 matrix
I think its because you are passing 3x3 matrix. As per the s2t function guideline input supposed to be 2x2 matrix. s2t
7 years 前 | 0
提问
How to get the order of Simulink blocks based on their pin connection
How to get the order of Simulink blocks based on their pin connection. For Example: From attached Simulink model (This mode...
7 years 前 | 1 个回答 | 0
1
个回答已回答
I need command to close simulink project window after launching simulink project file in matlab 2015b??
You can use close_system command to close Simulink system. close_system('SystemName');
I need command to close simulink project window after launching simulink project file in matlab 2015b??
You can use close_system command to close Simulink system. close_system('SystemName');
7 years 前 | 0
已回答
Cannot change "MaskValues" parameter
Hi, Please try to get the object of the block and assign the properties and check. oBlock = eval(LED); oBlock.SetPr...
Cannot change "MaskValues" parameter
Hi, Please try to get the object of the block and assign the properties and check. oBlock = eval(LED); oBlock.SetPr...
7 years 前 | 0
已回答
How to compare elements of two different cell array?
You can use ismember function to compare two cells. <https://de.mathworks.com/help/matlab/ref/ismember.html>
How to compare elements of two different cell array?
You can use ismember function to compare two cells. <https://de.mathworks.com/help/matlab/ref/ismember.html>
8 years 前 | 0
已回答
How to save results of a Class-Based Unittest without ToFile Plugin?
Create a test class with test cases classdef Test_Class < matlab.unittest.TestCase Then import the the test classes to ...
How to save results of a Class-Based Unittest without ToFile Plugin?
Create a test class with test cases classdef Test_Class < matlab.unittest.TestCase Then import the the test classes to ...
8 years 前 | 0
| 已接受
提问
How to get Command Window format for existing 'Cell Arrays'
I have a Cell-array created and i want to get the command window format for that cell-array. For example: I have created a 5x...
8 years 前 | 2 个回答 | 0
2
个回答已回答
A loop within a loop (for or if)
Hi, I didn't get exactly what you are trying to do. Hope this works. Cm = [Cm1 Cm2 Cm3]; P = 3000 for i=1:3 % B...
A loop within a loop (for or if)
Hi, I didn't get exactly what you are trying to do. Hope this works. Cm = [Cm1 Cm2 Cm3]; P = 3000 for i=1:3 % B...
8 years 前 | 0
已回答
How to loop over a function again?
HI, You are not returning any output from the function loop. function [ShortestPath, TotalCost] = loop(N) global ...
How to loop over a function again?
HI, You are not returning any output from the function loop. function [ShortestPath, TotalCost] = loop(N) global ...
8 years 前 | 0
已回答
how can i get a number from a string.
HI, Suppose A = 'index_N=10', then you can get value of index_N by using eval(A); it gives index_N = 10 as output...
how can i get a number from a string.
HI, Suppose A = 'index_N=10', then you can get value of index_N by using eval(A); it gives index_N = 10 as output...
8 years 前 | 0
已回答
Simple problem using for loop/array
Hi, Please use this. It gives the output as you have requested above. clc; A=0.4; % bond albedo AU=1....
Simple problem using for loop/array
Hi, Please use this. It gives the output as you have requested above. clc; A=0.4; % bond albedo AU=1....
8 years 前 | 0
| 已接受
已回答
what does line9 ( Newsol.x=pop(S).x.*(1-Cr)+sol.x.*Cr; ) do?
Hi, Line number 9 just assigns new vales to Newsol.x. It means the output sol.x will have a new value (Newsol.x) func...
what does line9 ( Newsol.x=pop(S).x.*(1-Cr)+sol.x.*Cr; ) do?
Hi, Line number 9 just assigns new vales to Newsol.x. It means the output sol.x will have a new value (Newsol.x) func...
8 years 前 | 0
已回答
how to write the formula ?
HI, Please do the following changes and check. x = (b/ (1.2 + 0.01)); x = fix(x); y = (c / (0.6 + 0.01)); ...
how to write the formula ?
HI, Please do the following changes and check. x = (b/ (1.2 + 0.01)); x = fix(x); y = (c / (0.6 + 0.01)); ...
8 years 前 | 0
已回答
Why can't I add title to plot in R2013a?
Hi, Normally for title title(str) title(str,Name,Value) title(ax,___) but the value of lgd = legend('Exam...
Why can't I add title to plot in R2013a?
Hi, Normally for title title(str) title(str,Name,Value) title(ax,___) but the value of lgd = legend('Exam...
8 years 前 | 0
| 已接受
已回答
I am triying to rearranging the matrix and form one as explained below
Hi, Hope this below piece of code will help you. aSize = size(A); initialValue = A(1); count = 1; temp=[]; f...
I am triying to rearranging the matrix and form one as explained below
Hi, Hope this below piece of code will help you. aSize = size(A); initialValue = A(1); count = 1; temp=[]; f...
8 years 前 | 0
| 已接受
已回答
Object Oriented Programming, programming a subclass of a handle class
This is the structure. classdef CellArray < handle properties %Write the properties if you want to use any EX: strName en...
Object Oriented Programming, programming a subclass of a handle class
This is the structure. classdef CellArray < handle properties %Write the properties if you want to use any EX: strName en...
8 years 前 | 0
已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
8 years 前