Community Profile Actif depuis 2016

#### Statistiques

All
• • • • • • #### Content Feed

Afficher par

A répondu
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; ...

environ 6 ans il y a | 1

A répondu
Find min in matrix given specific rows and columns?
You can use this. minRow = min(min(A(r, :))); minCol = min(min(A(:, c)));

environ 6 ans il y a | 0

A répondu
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...

environ 6 ans il y a | 3

| A accepté

A répondu
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

plus de 6 ans il y a | 0

Question

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...

plus de 6 ans il y a | 1 réponse | 0

### 1

réponse

A répondu
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');

plus de 6 ans il y a | 0

A répondu
Hi, Please try to get the object of the block and assign the properties and check. oBlock = eval(LED); oBlock.SetPr...

presque 7 ans il y a | 0

A répondu
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>

presque 7 ans il y a | 0

A répondu
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 ...

presque 7 ans il y a | 0

| A accepté

Question

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...

presque 7 ans il y a | 2 réponses | 0

### 2

réponses

A répondu
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...

presque 7 ans il y a | 0

A répondu
How to loop over a function again?
HI, You are not returning any output from the function loop. function [ShortestPath, TotalCost] = loop(N) global ...

presque 7 ans il y a | 0

A répondu
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...

presque 7 ans il y a | 0

A répondu
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....

presque 7 ans il y a | 0

| A accepté

A répondu
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...

presque 7 ans il y a | 0

A répondu
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)); ...

presque 7 ans il y a | 0

A répondu
Logical indexing in cell array
Hi, You can use this strcmp(b, '3');

presque 7 ans il y a | 4

A répondu
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...

presque 7 ans il y a | 0

| A accepté

A répondu
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...

presque 7 ans il y a | 0

| A accepté

A répondu
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...

presque 7 ans il y a | 0

A résolu

Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

environ 7 ans il y a